<html><head></head><body lang="en-US" style="background-color: rgb(255, 255, 255); line-height: initial;"> <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">I don't have server access at the moment, but I think nginx under FreeBSD runs under user www. </div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><span style="font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; font-size: initial; text-align: initial; line-height: initial;"><br></span></div> <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br style="display:initial"></div> <div style="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"></div> <table width="100%" style="background-color:white;border-spacing:0px;"> <tbody><tr><td colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"> <div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;"> <div><b>From: </b>Zhang Chao</div><div><b>Sent: </b>Monday, July 10, 2017 6:24 PM</div><div><b>To: </b>nginx@nginx.org</div><div><b>Reply To: </b>nginx@nginx.org</div><div><b>Subject: </b>Re: nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)</div></div></td></tr></tbody></table><div style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div><br><div id="_originalContent" style=""><style>body{font-family:Helvetica,Arial;font-size:13px}</style><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Hi!</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Only the root can bind the ports small than 1024. You should start your nginx service with the sudo prefix.</div> <br> <div id="bloop_sign_1499736188622951936" class="bloop_sign"></div> <br><p class="airmail_on">On 11 July 2017 at 09:20:40, Viaduct Lists (<a href="mailto:lists@viaduct-productions.com">lists@viaduct-productions.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Hi there. <br><br>Looking to get port 80 serving. Changed to root, but the error keeps the user from running:<br><br>nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /usr/local/etc/nginx/nginx.conf:2<br>nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok<br>nginx: [emerg] bind() to <a href="http://0.0.0.0:80">0.0.0.0:80</a> failed (13: Permission denied)<br>nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed<br><br>Is there any way to get nginx working as root? Is this a bad idea? I just don’t like running as port 8080. It complicates things down the road as I want to implement SSL (port 443) later on. Port numbers also get into my code later on. <br><br>Any advice appreciated how I can get this on normal ports 80 and 443. <br><br>_____________<br>Rich in Toronto @ VP<br><br><br><br><br><br><br>_______________________________________________<br>nginx mailing list<br><a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br><a href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></div></div></span></blockquote>
<br><!--end of _originalContent --></div></body></html>