gpt4 book ai didi

apache - RewriteEngine on给出错误403

转载 作者:行者123 更新时间:2023-12-03 12:29:45 25 4
gpt4 key购买 nike

索引文件存在并且可以工作。
当我用仅一行创建.htaccess文件时:

RewriteEngine On 

服务器上的任何页面都给我:

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster. Error 403 mysite.com Wed Oct 5 22:25:25 2011 Apache/2.2.3 (Linux/SUSE)



一些服务器信息:

Loaded Modules core 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)"

谢谢你的帮助!

最佳答案

地点

Options +SymLinksIfOwnerMatch

作为.htaccess文件的第一行。那为我解决了问题。

关于apache - RewriteEngine on给出错误403,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7667325/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com