![[attachments/covers/allow-erlangelixir-to-open-ports-80-and-443.png]]
*16 Feb 2021*
By default users other than root cannot open ports below 1000, for security reasons. If you want to - say - run your website in Elixir without nginx on port 80 or 443, you can allow the Erlang binary to open ports below 1000 using setcap (run as root):
```
setcap 'cap_net_bind_service=+ep' <path_to_erlang_folders>/erts-11.1/bin/beam.smp
```
[[tags/elixir|elixir]] [[tags/ports|ports]] [[tags/root|root]] [[tags/setcap|setcap]] [[tags/web|web]]