XAMPP 1.7.7 virtual host 403 error [Solved]
Posted: 22. September 2012 03:09
I need to be able to access multiple local sites for development. My hosting provider is using Linux but my local laptop is running Windows 7 for development. Here is what I have in httpd-vhosts.conf:
Here are some of the settings in httpd.conf:
I think I really didn't change much, if anything, in httpd.conf.
However, whenever I put http://carrierscompete in the address bar of any browser, I get the 403 Access forbidden page.
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin postmaster@localhost
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
ServerAlias www.localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" combined
<Directory "C:/xampp/htdocs">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin postmaster@carrierscompete
DocumentRoot "C:/home/carriers/www"
ServerName carrierscompete
ServerAlias www.carrierscompete
ErrorLog "logs/carrierscompete-error.log"
CustomLog "logs/carrierscompete-access.log" combined
<Directory "C:/home/carriers/www">
AllowOverride All
</Directory>
</VirtualHost>
Here are some of the settings in httpd.conf:
- Code: Select all
ServerRoot "C:/xampp/apache"
Listen 80
ServerAdmin postmaster@localhost
ServerName localhost:80
DocumentRoot "C:/xampp/htdocs"
I think I really didn't change much, if anything, in httpd.conf.
However, whenever I put http://carrierscompete in the address bar of any browser, I get the 403 Access forbidden page.