Back to Writing
NOTESawslinuxnetworkingdevopsiptables

AWS Linux - Resolving Port 80 Permission Denied Error

May 25, 2022Updated Feb 17, 2026

How to resolve the port 80 permission error on AWS Linux: use iptables to redirect port 80 to 8080.

When running a web server, you may hit a permission denied error on 0.0.0.0:80. The fix is to run your server on port 8080 and set up a redirect.

Ports below 1000 require root access. For security, the redirect approach is recommended over running as root.