Server: Wampserver error 403 on named virtual hosts outside of www

Installed the latest wampserver 2.5 and setup the virtual host files.

For virtual hosts config, added these lines into
conf/extra/httpd-vhosts.conf

Solution: http://stackoverflow.com/questions/15717739/wamp-server-virtual-hosts-configuration

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

Encountered Forbidden error 403 when I typed in the URLs.

Solution: http://stackoverflow.com/questions/10859271/wampserver-403-on-named-virtual-hosts-outside-of-www

# Deny access to the entirety of your server’s filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#

<Directory />
AllowOverride none
Require all denied
</Directory>

Since it is a local testing machine, I figured following this step would be ok even though on a live machine it would be insecure.

There is an alternative answer that doesn’t require “allow all” in the source link.

After commenting out, faced another issue Internal Server Error
Solution: http://serverfault.com/questions/529007/apache-htaccess-ifmodule-not-allowed-here

# Added to allow .htaccess in individual local site folders to override

<Directory />
AllowOverride ALL
</Directory>

This entry was posted in servers and tagged , . Bookmark the permalink.