Reverse Proxying Local Applications with User-Mode nginx and AF_UNIX Sockets (opens in new tab)
When running multiple local web applications, it is often useful to route requests to different applications based on URL prefixes. For example: might need to be reverse proxied to an application running in a separate process. This is easy to achieve with nginx. However, instead of using a system-wide nginx instance, this setup follows a different approach: Run nginx as an unprivileged user Use AF_UNIX (Unix domain) sockets instead of TCP ports for backend connections Make the URL-to-applicat...
Read the original article