linux apache部署错误总结(redhat8)

一、Forbidden You don‘t have permission to access this resource.

问题描述:

在配置文件中修改了网站数据目录的位置之后(默认:DocumentRoot "/var/www/html"),修改selinux=permissive 之后,在浏览器中访问时,还是出现了拒绝访问资源的错误。

解决方法:

修改配置文件。(配置文件路径:/etc/httpd/conf/httpd.conf)

修改前:

修改后:

修改之后,用浏览器访问:

猜你喜欢

转载自blog.csdn.net/weixin_53308294/article/details/129839446