nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)

smsmaddy1981 nginx-forum at forum.nginx.org
Fri Feb 5 10:02:52 UTC 2016


@Daniel,
You were true on the side-note, sudo prefixed command for NGinx actions will
cause an serious threat. I missed the note...

@Andrew 
also stated "In Linux (and most other Unix based systems) ports below 1024
need to be opened using the root user. So you need to start NGINX as root
which will open the port and then drop down to an unprivileged user for the
port."

Is there a way to achieve this?

I am not sure, if the below is relevant?
http://stackoverflow.com/questions/413807/is-there-a-way-for-non-root-processes-to-bind-to-privileged-ports-1024-on-l

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,264319,264365#msg-264365



More information about the nginx mailing list