Quantcast
Channel: Allow non-root process to bind to port 80 and 443? - Super User
Viewing all articles
Browse latest Browse all 8

Answer by thx1111 for Allow non-root process to bind to port 80 and 443?

$
0
0

If you are running systemd and linux, then you can simply add to the server unit file:

# /etc/systemd/system/http_server.service# ...[Service]# ...AmbientCapabilities = CAP_NET_BIND_SERVICE

And, if, in addition, you want your web server to never gain additional capabilities, you may also add:

CapabilityBoundingSet = CAP_NET_BIND_SERVICE

Also see

for a description of those systemd service unit file configuration options, which define the execution environment of spawned processes.


Viewing all articles
Browse latest Browse all 8

Trending Articles