Skip to main content

To serve Phoenix apps without a reverse proxy like Nginx or Apache, the OS must allow the Erlang VM to listen in port 80, and 443 if you want https. By default you can't.
# Replace <path_to_erlang_folders> with the path to the VM that will run your app 

# and run this on the command line in your server, as root.


setcap 'cap_net_bind_service=+ep' <path_to_erlang_folders>/erts-11.1/bin/beam.smp
7 upvotes

© 2021 Zest Creative, LLC