How To Solved 403 Permission Denied Nginx. Nginx By default set user www-data, Maybe it's not the right permission for you. Basically, this problem we face when we are working with Django.
Open the terminal and type ...
sudo nano /etc/nginx/nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
Now Replace it with your username
user ubuntu;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
Get the latest news and updates by signing up to our daily newsletter.We won't sell your email or spam you !