How to configure NGINX to reverse proxy connections from port 80 to other port

If you’re going this route, it would make sense to allow access to your app through NGINX only.

Edit your app’s config and set it to listen on “127.0.0.1:1337” or any unused port above 1024 (any program that needs to listen on ports < 1024 must run as root which is not recommended for a website) and add configure following block below

Sliding Sidebar

About Me

About Me

Hello, my name is Dũng (Johnny). Welcome to my blog.

As I’m a developer, I write about topics related to the field of programming, mainly from a technical point of view. On this blog you’ll find posts which encourage discussion, information about development trends, case studies, reviews, tutorials, tips on how to improve your effectiveness, and anything else that might be fascinating to people from the IT industry.
I love PHP, NodeJS, Java,... and Fullstack.