osx - How to bind 80 non-root -
is there anyway bind program on mac os :80 without root privilege, on linux exemple having user www able so.
any ideas ?
is concern don't want nginx running root or don't have root access?
nginx has user config option drop root after binding port.
if don't have root access best solution know of on os x use pf setup ip redirection non-priviliged port, you'll still need root access this.
the config pf stored in /etc/pf.conf - believe can add rules file , reload pf them take effect.
rdr pass inet proto tcp any port 80 -> 127.0.0.1 port 8080 rdr pass inet proto tcp any port 443 -> 127.0.0.1 port 8081 then reload pf sudo pfctl -f -ef /etc/pf.conf , configure nginx listen on ports redirected to.
Comments
Post a Comment