繁体   English   中英

Apache配置错误403

[英]Apache configuration error 403

我已经按照本教程配置http apache服务器: https : //access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Confined_Services/chap-Managing_Confined_Services-The_Apache_HTTP_Server.html

当我使用连接

telnet localhost 12345
GET / HTTP/1.0

我有一个错误

HTTP/1.1 403 Forbidden

apache的默认html也在下面列出。 我尝试配置

/etc/httpd/conf/httpd.conf

<Directory "/var/www/html">
 Order allow,deny
 Allow from all
 Require all granted
</Directory>

并且还跑了

chmod -R o+x /var/www/html

而且我仍然遇到相同的错误。 我该如何进行?

/ var / www / html /目录中是否有一个名为index.html的文件? 我还建议检查/ var / log / httpd目录下的访问和错误日​​志文件

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM