Hiho,
ich habe hier einen XAMPP 1.5.3a auf einem Win XP Sp1a laufen. Alles super. Nun benötige ich mehrere Subdomains, die ich z.B. per subdomain.localhost aufrufen kann.
Dazu habe ich folgende Ergänzung in die httpd-vhosts.conf eingefügt:
[code]
NameVirtualHost *:80
<VirtualHost *:80>
ServerName *****
ServerAlias *****
ServerAdmin webmaster@localhost
DocumentRoot "d:/_localhost"
<Directory "d:/_localhost">
AllowOverride All
Options +Indexes IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName de.*****
ServerAlias www.de.*****
ServerAdmin webmaster@localhost
DocumentRoot d:/_localhost/subdomains/de
<Directory d:/_localhost/subdomains/de>
AllowOverride All
Options +Indexes IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName en.*****
ServerAlias www.en.*****
ServerAdmin webmaster@localhost
DocumentRoot d:/_localhost/subdomains/en
<Directory d:/_localhost/subdomains/en>
AllowOverride All
Options +Indexes IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
[/code]
Der Aufruf von localhost tut was er soll, die ensprechende Indexdatei wird angezeigt. Der Aufruf von subdomain.localhost erzeugt nach deutlicher Wartezeit einen "Fehler: Server nicht gefunden".
Was ist falsch? Die Einträge? Der Aufruf? Beides?
Bin ratlos, habe nichts passendes im AF Forum und Google gefunden. Und da war ne Menge!
Gruss