Troubleshooting of nginx errors: Difference between revisions

Jump to navigation Jump to search
m
No edit summary
 
Line 97: Line 97:
=== Common Permission Issues ===
=== Common Permission Issues ===


If you still have access problems, check file permissions:
If you still have access problems, check file permissions: Ensure Nginx user can access the directory


<pre lang="bash">
<pre lang="bash">
= Ensure Nginx user can access the directory =
sudo chown -R www-data:www-data /usr/share/nginx/html/example_folder
sudo chown -R www-data:www-data /usr/share/nginx/html/example_folder
sudo chmod -R 755 /usr/share/nginx/html/example_folder
sudo chmod -R 755 /usr/share/nginx/html/example_folder

Navigation menu