Virtual Hosts funktioniert nicht mit Subdomains

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Virtual Hosts funktioniert nicht mit Subdomains

Postby genji3000 » 09. May 2011 14:23

Hallo,
in meiner Entwicklungsumgebung mit XAMPP unter Windows 7 (64 bit)ist es nicht möglich Subdomains, z.B. xy.abc.de als URL aufzurufen. Alle URLs mit Punkten funktionieren nicht. Dann kommt die Fehlermeldung "could not find xy.abc.de". Ich habe das unter XAMPP 1.7.4 und 1.7.3 getestet. Die Dateien "c:\Windows\System32\drivers\etc\hosts" und "c:\xampp\apache\conf\extra\httpd-vhosts.conf" habe ich entsprechend angepasst und auf einem anderen Rechner (Windows 7 32-Bit)erfolgreich getestet. Gibt es auf meinem Rechner irgendwelche globalen Einstellungen die das verhindern?

c:\Windows\System32\drivers\etc\hosts
Code: Select all
# localhost name resolution is handled within DNS itself.
127.0.0.1       localhost
#   ::1             localhost
127.0.0.1       xy.abc.de


c:\xampp\apache\conf\extra\httpd-vhosts.conf
Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/"
    ServerName localhost
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/xy.abc.de/public"
    ServerName dev.xy.abc.de
</VirtualHost>


Im C:\xampp\apache\logs\error.log steht folgendes:
Code: Select all
[Mon May 09 15:20:07 2011] [notice] Digest: generating secret for digest authentication ...
[Mon May 09 15:20:07 2011] [notice] Digest: done
[Mon May 09 15:20:08 2011] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Mon May 09 15:20:08 2011] [notice] Server built: Nov 11 2009 14:29:03
[Mon May 09 15:20:08 2011] [notice] Parent: Created child process 3264
[Mon May 09 15:20:09 2011] [notice] Digest: generating secret for digest authentication ...
[Mon May 09 15:20:09 2011] [notice] Digest: done
[Mon May 09 15:20:09 2011] [notice] Child 3264: Child process is running
[Mon May 09 15:20:09 2011] [notice] Child 3264: Acquired the start mutex.
[Mon May 09 15:20:09 2011] [notice] Child 3264: Starting 150 worker threads.
[Mon May 09 15:20:09 2011] [notice] Child 3264: Starting thread to listen on port 443.
[Mon May 09 15:20:09 2011] [notice] Child 3264: Starting thread to listen on port 80.
[Mon May 09 15:20:09 2011] [notice] Child 3264: Starting thread to listen on port 443.
[Mon May 09 15:20:09 2011] [notice] Child 3264: Starting thread to listen on port 80.


Naturlich starte ich Apache jedesmal neu.

Ich habe schon in diverse Foren geschaut. leider aber bisher noch keine Lösung gefunden.
Hoffentlich hier :D
genji3000
 
Posts: 1
Joined: 09. May 2011 14:07

Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 75 guests