Skip to content

Nginx Reverse Proxy Configuration

View on Twitter

💡 Want to host multiple apps on a single #VPS?

👉🏼 You can configure #Nginx as a reverse proxy to route traffic to different apps on your server. Create a `server` block for each app and add a `proxy_pass` directive.


Basic Nginx reverse proxy configuration with two server blocks and each having a server_name directive indicating which domain it should match.

Download the VPS Security Cheatsheet

Use this FREE security cheatsheet to not miss a step when securing your VPS.

A preview of the VPS Security Cheatsheet.

You'll also get tips on building scalable Node.js applications about twice a month. I respect your email privacy. Unsubscribe any time.

You might also like
Find DigitalOcean Region With Lowest Ping Read tip
Difference Between Apt and Apt-Get Read tip
Disable NPM Update Notifications Read tip