DEV Community

Reverse Proxying Local Applications with User-Mode nginx and AF_UNIX Sockets (opens in new tab)

Discussed on DEV

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
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help