[英]Apache configuration error 403
I have followed this tutorial to configure http apache server: 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 我已经按照本教程配置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
When I connected using 当我使用连接
telnet localhost 12345
GET / HTTP/1.0
I got an error 我有一个错误
HTTP/1.1 403 Forbidden
and the default html of apache was listed below too. apache的默认html也在下面列出。 I tried to configure the 我尝试配置
/etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf
adding 加
<Directory "/var/www/html">
Order allow,deny
Allow from all
Require all granted
</Directory>
and also ran 并且还跑了
chmod -R o+x /var/www/html
and I'm still getting the same error. 而且我仍然遇到相同的错误。 How do I proceed? 我该如何进行?
Do you have a file called index.html inside /var/www/html/ directory? / var / www / html /目录中是否有一个名为index.html的文件? I would also suggest to check access and error logs files under /var/log/httpd directory 我还建议检查/ var / log / httpd目录下的访问和错误日志文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.