Wampserver 403 on named virtual hosts outside of /www

后端 未结 5 1180
栀梦
栀梦 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-05 22:04

    I guess I should have looked at the http.conf more carefully. It's not that long, mostly comments. The troublesome part was this.

    # Deny access to the entirety of your server's filesystem. You must
    # explicitly permit access to web content directories in other 
    #  blocks below.
    #
    
    
        AllowOverride none
        Require all denied
    
    

    I commented it out and now stuff works, although I guess it's less secure, but it is just a testing server.

    I thought the bit was supposed to take care of it but I guess not.

提交回复
热议问题