Modify the nginx. Conf

The error log file is stored in /usr/share/nginx

You can view specific error information in logs.

If nginx does not have file access:

Add common user to root user group usermod -g root nginx and restart nginx.


After modifying the nginx.conf file:

Nginx -t Service nginx restart Restarts the nginx