I have some problems with multiple virtual hosts on Win7 with Xampp. Some work and others don't - without some reason (that is visible to me). To illustrate the problem I show you how my set up looks: "working" vs. "not working" - where "not working" means I get a 403
General setup:
Path: R:\development\xampp
Path to projects: R:\development\xampp\htdocs
working
C:\Windows\System32\drivers\etc\hosts
127.0.0.1 vanilla.dev
R:\development\xampp\apache\conf\extra\httpd-vhosts.conf
- Code: Select all
<VirtualHost *:80>
ServerName www.vanilla.dev
ServerAlias vanilla.dev
DocumentRoot "R:\development\xampp\htdocs\vanilla"
<Directory "R:\development\xampp\htdocs\vanilla">
Options +Indexes +FollowSymLinks +Includes
AllowOverride FileInfo
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.php index.shtml index.html index.htm
</Directory>
</VirtualHost>
not working
[b]C:\Windows\System32\drivers\etc\hosts
127.0.0.1 vanilla-mu.dev
R:\development\xampp\apache\conf\extra\httpd-vhosts.conf
- Code: Select all
<VirtualHost *:80>
ServerName www.vanilla-mu.dev
ServerAlias vanilla-mu.dev
DocumentRoot "R:\development\xampp\htdocs\vanilla-mu"
<Directory "R:\development\xampp\htdocs\vanilla-mu">
Options +Indexes +FollowSymLinks +Includes
AllowOverride FileInfo
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.php index.shtml index.html index.htm
</Directory>
</VirtualHost>
I also got a localhost, which also gives me a 403 for http://localhost and http://localhost/xampp, but I can still access http://localhost/phpmyadmin
- Code: Select all
<VirtualHost *:80>
ServerName localhost
# ServerAdmin webmaster@localhost
DocumentRoot "R:\development\xampp\htdocs"
ErrorLog "logs/localhost-error.log"
<Directory "R:\development\xampp\htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.php index.shtml index.html index.htm
</Directory>
</VirtualHost>
I already tried a lot of different stuff as changing the name for the vanilla-mu.dev domain and copy/paste it to avoid typing errors. I searched google a lot, but still can't get around it. Even a test html-file won't get loaded and ends up in a 403.
Any help is appreciated. Thanks!