User root is not allowed to use the Nginx Webserver module

SYSTEM INFORMATION

debian 11
|Webmin version|1.981

Usermin version 1.830
Virtualmin version 6.17-3

NGINX

I am getting an error when accessing the settings page /virtualmin-nginx/

Access denied : User root is not allowed to use the Nginx Webserver module

is there a setting that I need to enable?

I ran into this exact problem, which had me stumped for a while. The problem is that Nginx needs to execute as root and let the user directive in the /etc/Nginx/Nginx.conf handle running everything as the correct user. For me, I had the system job defining the user to run Nginx as. Try setting the permissions for /var/log/Nginx/ to 766.
sudo chmod -R 766 /var/log/Nginx/
I guess this will help.
Thanks

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.