Ich betreibe Wordpress lokal und möchte nun mittels der Vhosts von Apache auch offline Testdomains nutzen.
Dafür setze ich in der hosts-Datei von Windows:
sowie in der httpd-vhosts.conf in meinem Apache-Verzeichnis:
Code
NameVirtualHost 127.0.0.1
################################################
# VirtualHost's
################################################
<VirtualHost 127.0.0.1>
ServerName localhost
AddType text/html .shtml
AddHandler server-parsed .shtml
ServerAdmin webmaster@localhost
DocumentRoot "X:/xampp/htdocs/cgi-bin/"
<Directory "X:/xampp/htdocs">
Options Indexes FollowSymLinks
Options +Includes
# Options +
AllowOverride FileInfo
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.html index.htm index.php
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName www.meinBlog.test
ServerAlias meinBlog.test
AddType text/html .shtml
AddHandler server-parsed .shtml
ServerAdmin webmaster@localhost
DocumentRoot "X:/xampp/htdocs/meinBlog/wordpress/"
ScriptAlias /cgi-bin/ "X:/xampp/htdocs/meinBlog/wordpress/cgi-bin/"
<Directory "X:/xampp/htdocs/meinBlog/wordpress/">
Options Indexes FollowSymLinks
Options +Includes
# Options +
AllowOverride FileInfo
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.html index.htm index.php
</Directory>
</VirtualHost>
Alles anzeigen
Wenn ich nun den Server starte und "meinBlog.test" aufrufe, werde ich auf "http://localhost/" weitergeleitet.
Irgendetwas hat also nicht geklappt und ich bin zum ersten Vhosts-eintrag befördert worden (ist für Fehler so vorgesehen).
Bloß was ist falsch?