【发布时间】:2011-12-01 19:29:25
【问题描述】:
索引文件存在并且有效。 当我使用 ONLY 行创建 .htaccess 文件时:
RewriteEngine On
服务器上的任何页面都给我:
禁止访问!
您无权访问请求的对象。它是 服务器读保护或不可读。
如果您认为这是服务器错误,请联系网站管理员。 错误 403 mysite.com 2011 年 10 月 5 日星期三 22:25:25 Apache/2.2.3 (Linux/SUSE)
一些服务器信息:
加载的模块核心 prefork http_core mod_so mod_actions mod_alias mod_auth_basic mod_authn_file mod_authz_host mod_authz_groupfile mod_authz_default mod_authz_user mod_authn_dbm mod_autoindex mod_cgi mod_dir mod_env mod_expires mod_include mod_log_config mod_mime mod_negotiation mod_setenvif mod_ssl mod_suexec mod_userdir mod_rewrite mod_php5
Apache 版本:
SERVER_SOFTWARE Apache/2.2.3 (Linux/SUSE)
也这样做了:
Options FollowSymLinks
在 httpd.conf 的目录部分
日志只说明错误的事实,而不是原因:
89.112.xx.x - - [05/Oct/2011:22:32:34 +0200] "GET /info.php HTTP/1.1" 403 1040 "-" "Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1"
::1 - - [05/Oct/2011:22:32:45 +0200] "GET / HTTP/1.0" 200 1 "-" "Apache/2.2.3 (Linux/SUSE) (internal dummy connection)"
感谢您的帮助!
【问题讨论】:
-
请查看以下链接。它会帮助你stackoverflow.com/questions/22621643/…
标签: apache mod-rewrite httpd.conf