Summary of linux apache deployment errors (redhat8)

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

 

Problem Description:

After modifying the location of the website data directory in the configuration file (default: DocumentRoot "/var/www/html"), after modifying selinux=permissive , when accessing in the browser, an error of denying access to resources still occurs.

Solution:

Modify the configuration file. (Configuration file path: /etc/httpd/conf/httpd.conf)

before fixing:

 

After modification:

 

After modification, visit with a browser:

 

Guess you like

Origin blog.csdn.net/weixin_53308294/article/details/129839446