.htaccess/.htpasswd 500 Internal Server Error

后端 未结 6 1068
暗喜
暗喜 2020-12-13 17:14

I\'m working on blocking a folder with .htaccess, which I\'ve never used before, and I\'m having some trouble. Here\'s what I have

.htaccess (located in the folder I

6条回答
  •  爱一瞬间的悲伤
    2020-12-13 17:50

    If you see 500 Internal Server error these days - it's mostly due to the fact that in newer Apache versions the path in AuthUserFile has to be put inside quotation marks.

    AuthUserFile "/var/www/somewhere/.htpasswd"
    

提交回复
热议问题