How to Set Up Nginx as a Reverse Proxy on Ubuntu 26.04 Without Docker

This guide walks through configuring Nginx as a reverse proxy on a plain Ubuntu 26.04 server for an app already running on a local loopback port. Nginx is installed from the default Ubuntu archive, which ships version 1.28.3 with HTTP/2 and real IP support built in. A custom site configuration is created with proxy headers to pass client details to the app, while the default Nginx site is removed to avoid conflicts. HTTPS is handled via Certbot 4.0, also available directly from the Ubuntu archive without requiring a snap package. The guide highlights common pitfalls such as WebSocket 502 errors, missing forwarding headers, and a deprecated HTTP/2 syntax still found in older documentation.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in