{"id":27,"date":"2014-07-29T11:52:22","date_gmt":"2014-07-29T11:52:22","guid":{"rendered":"http:\/\/angelwings.net\/blog\/?p=27"},"modified":"2014-07-29T11:52:22","modified_gmt":"2014-07-29T11:52:22","slug":"server-wampserver-error-403-on-named-virtual-hosts-outside-of-www","status":"publish","type":"post","link":"https:\/\/angelwings.net\/blog\/server-wampserver-error-403-on-named-virtual-hosts-outside-of-www\/","title":{"rendered":"Server: Wampserver error 403 on named virtual hosts outside of www"},"content":{"rendered":"<p>Installed the latest wampserver 2.5 and setup the virtual host files.<\/p>\n<p>For virtual hosts config, added these lines into<br \/>\nconf\/extra\/httpd-vhosts.conf<\/p>\n<p>Solution: http:\/\/stackoverflow.com\/questions\/15717739\/wamp-server-virtual-hosts-configuration<\/p>\n<blockquote><p>#<br \/>\n# Use name-based virtual hosting.<br \/>\n#<br \/>\nNameVirtualHost *:80<\/p><\/blockquote>\n<p>Encountered Forbidden error 403 when I typed in the URLs.<\/p>\n<p>Solution: http:\/\/stackoverflow.com\/questions\/10859271\/wampserver-403-on-named-virtual-hosts-outside-of-www<\/p>\n<blockquote><p># Deny access to the entirety of your server&#8217;s filesystem. You must<br \/>\n# explicitly permit access to web content directories in other<br \/>\n# &lt;Directory&gt; blocks below.<br \/>\n#<\/p>\n<p>&lt;Directory \/&gt;<br \/>\nAllowOverride none<br \/>\nRequire all denied<br \/>\n&lt;\/Directory&gt;<\/p><\/blockquote>\n<p>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.<\/p>\n<p>There is an alternative answer that doesn&#8217;t require &#8220;allow all&#8221; in the source link.<\/p>\n<p>After commenting out, faced another issue Internal Server Error<br \/>\nSolution: http:\/\/serverfault.com\/questions\/529007\/apache-htaccess-ifmodule-not-allowed-here<\/p>\n<p># Added to allow .htaccess in individual local site folders to override<\/p>\n<blockquote><p>&lt;Directory \/&gt;<br \/>\nAllowOverride ALL<br \/>\n&lt;\/Directory&gt;<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s filesystem. You must [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[125,126],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-servers","tag-wampserver","tag-wampserver-2-5"],"_links":{"self":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":0,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"wp:attachment":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}