Wampserver 403 on named virtual hosts outside of /www

后端 未结 5 1178
栀梦
栀梦 2021-02-05 21:36

Wampserver tells me accessed denied when I try making a virtual host outside of the c:/wamp/www/ directory. I can make one fine within that directory. Even making a symbolic lin

5条回答
  •  悲&欢浪女
    2021-02-05 22:09

    I know the question is old now and you have got it working, but I came up against this issue and solved it without removing the Require all denied tag.

    You just have to add a Require local (or Require all for online access) tag to the Directory tag. e.g.

    
        ServerName local.md9
        ServerAlias local.md9
        DocumentRoot "m:/Work/New MD9.ca/site/"
    
        
            Order Allow,Deny
            Allow from All
            Require local
        
    
    

    You can see the same rule declared in DocumentRoot directory in httpd.conf

提交回复
热议问题