so sieht ein snippet der httpd-vhosts datei aus:
- Code: Select all
<VirtualHost localhost:80>
ServerAdmin webmaster@localhost
DocumentRoot "F:\xampp\htdocs"
ServerName localhost
ServerAlias localhost
DirectoryIndex index.php index.html index.html index.htm index.shtml
</VirtualHost>
<VirtualHost beispiel.localhost:80>
ServerAlias beispiel.localhost
ServerName beispiel.localhost
DocumentRoot "F:\xampp\htdocs\beispiel"
DirectoryIndex index.php index.html index.html index.htm index.shtml
</VirtualHost>
und so meine hosts datei:
- Code: Select all
127.0.0.1 localhost
127.0.0.1 beispiel.localhost
wenn ich nun auf http://localhost gehe funktioniert alles, xampp panel lädt wie es soll...
wenn ich nun aber http://beispiel.localhost aufrufe wechselt er automatisch zu http://beispiel.localhost/xampp/ und somit auch zum xampp panel anstatt zu F:\xampp\htdocs\beispiel bzw. http://localhost/beispiel
ich versteh nicht warum? bitte um hilfe