Apache Log says: Deny - but it works (htaccess)

守給你的承諾、 提交于 2020-01-06 07:24:48

问题


I am playing a little bit with htaccess to know apache with xampp.

I configured "AllowOverride All" for the whole / directory and the .htaccess files in the folders work properly.

I get excluded from a "private" folder, I get access to a "public" folder. But the log says something completely different.

For example Basic Authentication .htaccess:

# .htaccess for password
AuthType Basic
AuthName "password Folder is for password Folders"
AuthUserFile C:/xampp/htdocs/password/.htusers
Require valid-user

And I can login with correct passwords. But the log says it is denied !?

Apache Error Log:

[Thu May 10 13:04:05 2012] [error] [client ::1] client denied by server configuration: C:/xampp/htdocs/password/.htaccess [Thu May 10 13:04:05 2012] [error] [client ::1] client denied by server configuration: C:/xampp/htdocs/password/.htusers

Why? It works as I can see - but why does the log tell me something completely different?


回答1:


Solution to question, may be possibly also a logging-bug in apache or xampp (i dont know), is to put files into the directories. If that happened the error message disappears.



来源:https://stackoverflow.com/questions/10532746/apache-log-says-deny-but-it-works-htaccess

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!