Apache日志说:拒绝 - 但它的工作原理(htaccess的) [英] Apache Log says: Deny - but it works (htaccess)

查看:127
本文介绍了Apache日志说:拒绝 - 但它的工作原理(htaccess的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我玩一点点与htaccess的了解与Apache的XAMPP。

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

我配置设置AllowOverride全部整个/目录,并在文件夹中的.htaccess文件正常工作。

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.

例如基本身份验证的.htaccess:

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的错误日志:

Apache Error Log:

[周四5月10日13时04分05秒2012] [错误] [客户:: 1]客户端通过否认   服务器配置:C:/xampp/htdocs/password/.htaccess [周四5月10日   13点04分○五秒2012] [错误] [客户:: 1]客户端通过服务器拒绝   配置:C:/xampp/htdocs/password/.htusers

[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?

推荐答案

解决方案质疑,可能是也可能日志记录,错误,在Apache或XAMPP(我不知道),就是把文件放到目录。如果发生错误信息消失。

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.

这篇关于Apache日志说:拒绝 - 但它的工作原理(htaccess的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆