.htpasswd and .htaccess - internal server error

后端 未结 4 1643
死守一世寂寞
死守一世寂寞 2021-01-04 00:51

I want to password protect my website, but as soon as I add in the .htpasswd and .htaccess files I get a server error:

Internal Server Error

4条回答
  •  时光取名叫无心
    2021-01-04 01:15

    All of the standard answers (full path, correct format, etc) weren't working for me. After a lot of tracking down I found that the permissions on the parent folder were insufficient, so even though the path in .htaccess was correct and the permissions on the file were rw-r-r, still no go because the parent was rwx-rw--. That can be tough to track down on a host that limits access to up stream folders.

提交回复
热议问题