14,974
edits
| Line 12: | Line 12: | ||
</pre> | </pre> | ||
== Troubleshooting process == | == Troubleshooting process of the 403 forbidden error == | ||
=== Client side: Check the permission === | |||
=== Check the SELinux policy if SELinux was enabled === | # Check the cookie was enabled | ||
=== Server side: Check the SELinux policy if SELinux was enabled === | |||
The result of {{kbd | key=<nowiki>ls -Zd</nowiki>}} should contains "httpd_sys_content_t:" | The result of {{kbd | key=<nowiki>ls -Zd</nowiki>}} should contains "httpd_sys_content_t:" | ||
| Line 23: | Line 26: | ||
</pre> | </pre> | ||
=== Check the configuration of HTTP server === | === Server side: Check the configuration of HTTP server === | ||
Check if home directory exists e.g. {{kbd | key=<nowiki>/path/to/website/</nowiki>}} in the configuration of HTTP server. The folder location of configuration files maybe located on {{kdb | key=<nowiki>/etc/httpd/sites-enabled/</nowiki>}} depends on the HTTP server environment. | Check if home directory exists e.g. {{kbd | key=<nowiki>/path/to/website/</nowiki>}} in the configuration of HTTP server. The folder location of configuration files maybe located on {{kdb | key=<nowiki>/etc/httpd/sites-enabled/</nowiki>}} depends on the HTTP server environment. | ||
| Line 33: | Line 36: | ||
</pre> | </pre> | ||
=== Check the syntax of .htaccess === | === Server side: Check the syntax of .htaccess === | ||
Check if the syntax of .htaccess ({{kbd | key=<nowiki>/path/to/website/.htaccess</nowiki>}} ) correct. | Check if the syntax of .htaccess ({{kbd | key=<nowiki>/path/to/website/.htaccess</nowiki>}} ) correct. | ||