Wampserver 403 on named virtual hosts outside of /www

后端 未结 5 1177
栀梦
栀梦 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:19

    The tag should be inside the

    like this:

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

    also note that for outside the default www folder you should use require instead of allow

    
        AllowOverride none
        Require all denied
    
    

提交回复
热议问题