I'm running Apache server on macOS Mojave, installed with brew, and wonder why it's possible to bind to *:80, but not the localhost:80, when run as an unprivilged user.
I know that * means 0.0.0.0, i.e. all network interfaces, which implies localhost (127.0.0.1), so it makes no sense w.r.t. security?
Can unprivilged applications always bind to 0.0.0.0 on privileged ports, but not to 127.0.0.1 on those ports?
[Thu Jul 11 13:52:25.829043 2019] [mpm_prefork:notice] [pid 9563] AH00173: SIGHUP received. Attempting to restart
(13)Permission denied: AH00072: make_sock: could not bind to address 127.0.0.1:443
[Thu Jul 11 13:52:25.861820 2019] [mpm_prefork:alert] [pid 9563] no listening sockets available, shutting down
[Thu Jul 11 13:52:25.861830 2019] [:emerg] [pid 9563] AH00019: Unable to open logs, exiting
Aucun commentaire:
Enregistrer un commentaire