Wie muss die Apache httpd-vhosts.conf bei Domainweiterleitung -Umleitung aussehen?
Hallo zusammen und ein gutes neus Jahr,
kurze Problemstellung, bei 1&1 ist die Domain hans-ewald.de (NSLookup IP 217.172.xxx.xxx) registriert, dort in der HTTP
Domainweiterleitung steht meine Server Adresse http://85.115.xx.xxx (kann man nur so eingeben)
Hab es auch schon ne Weiterleitung über eine .htaccess versucht,
Redirect / http://85.115.xx.xxx/
Das Problem, ich komme IMMER auf den default vhost, in diesem Fall "localhost". Auch wenn ich direkt im Config Menü zu der Domain die Server IP 85.115.xx.xxx eingeben, bekomme ich das gleiche Ergebnis.
Was muss ich nich in der VHOST Datei berücksichtigen bzw was hab ich falsch gemacht? Bin für jeden Tip dankbar.
Anbei noch ein paar Infos,
- Win 2003 Server,
- XAMPP.
und noch ein paar Details zur Konfiguration.
httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
ServerAdmin meine@mailadresse.de
DocumentRoot "/xampp/htdocs/"
</VirtualHost>
<VirtualHost *:80>
ServerName hans-ewald.de
ServerAlias www.hans-ewald.de *.hans-ewald.de
ServerAdmin webmaster@dhans-ewald.de
DocumentRoot "D:/xampp/htdocs/hans-ewald"
<Directory "D:/xampp/htdocs/hans-ewald/">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Host Datei
127.0.0.1 localhost
217.172.xxx.xxx hans-ewald.de www.hans-ewald.de #DNS A Record laut NSLOOKUP
85.115.xx.xxx hans-ewald.de www.hans-ewald.de #Mein eigener Server
Und das ist der HTTP Aufruf:
Display URL Normal browser lookup of URL http://www.hans-ewald.de/ Completed
Started At 2008-Jan-02 19:40:41.026 Completed
DNS Lookup Lookup of hostname 'www.hans-ewald.de' Completed
Connect Connect to IP address '217.172.xxx.xxx' Completed
HTTP Request Unconditional request sent for http://www.hans-ewald.de/ Completed
HTTP Response Headers and content returned Completed
Redirect A redirect to http://85.115.xx.xxx/ was issued by the server
HTTP Header
(Request-Line) GET / HTTP/1.1
Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Encoding gzip, deflate
Accept-Language de
Connection Keep-Alive
Host www.hans-ewald.de
User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Danke & Grüße,
Maik
kurze Problemstellung, bei 1&1 ist die Domain hans-ewald.de (NSLookup IP 217.172.xxx.xxx) registriert, dort in der HTTP
Domainweiterleitung steht meine Server Adresse http://85.115.xx.xxx (kann man nur so eingeben)
Hab es auch schon ne Weiterleitung über eine .htaccess versucht,
Redirect / http://85.115.xx.xxx/
Das Problem, ich komme IMMER auf den default vhost, in diesem Fall "localhost". Auch wenn ich direkt im Config Menü zu der Domain die Server IP 85.115.xx.xxx eingeben, bekomme ich das gleiche Ergebnis.
Was muss ich nich in der VHOST Datei berücksichtigen bzw was hab ich falsch gemacht? Bin für jeden Tip dankbar.
Anbei noch ein paar Infos,
- Win 2003 Server,
- XAMPP.
und noch ein paar Details zur Konfiguration.
httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
ServerAdmin meine@mailadresse.de
DocumentRoot "/xampp/htdocs/"
</VirtualHost>
<VirtualHost *:80>
ServerName hans-ewald.de
ServerAlias www.hans-ewald.de *.hans-ewald.de
ServerAdmin webmaster@dhans-ewald.de
DocumentRoot "D:/xampp/htdocs/hans-ewald"
<Directory "D:/xampp/htdocs/hans-ewald/">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Host Datei
127.0.0.1 localhost
217.172.xxx.xxx hans-ewald.de www.hans-ewald.de #DNS A Record laut NSLOOKUP
85.115.xx.xxx hans-ewald.de www.hans-ewald.de #Mein eigener Server
Und das ist der HTTP Aufruf:
Display URL Normal browser lookup of URL http://www.hans-ewald.de/ Completed
Started At 2008-Jan-02 19:40:41.026 Completed
DNS Lookup Lookup of hostname 'www.hans-ewald.de' Completed
Connect Connect to IP address '217.172.xxx.xxx' Completed
HTTP Request Unconditional request sent for http://www.hans-ewald.de/ Completed
HTTP Response Headers and content returned Completed
Redirect A redirect to http://85.115.xx.xxx/ was issued by the server
HTTP Header
(Request-Line) GET / HTTP/1.1
Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Encoding gzip, deflate
Accept-Language de
Connection Keep-Alive
Host www.hans-ewald.de
User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Danke & Grüße,
Maik
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-ID: 77054
Url: https://administrator.de/forum/wie-muss-die-apache-httpd-vhosts-conf-bei-domainweiterleitung-umleitung-aussehen-77054.html
Ausgedruckt am: 18.05.2025 um 01:05 Uhr
10 Kommentare
Neuester Kommentar