AllowOverride for .htaccess on local machine giving 403 Forbidden

后端 未结 1 1468
無奈伤痛
無奈伤痛 2020-12-28 20:21

I have a mod_rewrite I\'d like to use locally on my mac but when I change my configuration to in my directory tag I get a 403 Forbidden error. I\'ve tried all the other solu

相关标签:
1条回答
  • 2020-12-28 21:24

    I was able to get it fixed by setting my /etc/apache2/users/username.conf file like so (Note you have to change the Options line too, not just the AllowOverride):

    <Directory "/Users/tlhunter/Sites/">
        Options All               
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    
    0 讨论(0)
提交回复
热议问题