Reverse Proxying and You
#
Reverse Proxying
Reverse Proxying is the secret to making self-hosting work. It acts as a multiplexer for web services. Since when you access a website it makes requests on port 80 (for standard http).
It will be intercepted by the reverse proxy server. Depending on what domain is making the request, it will be then be routed to a corresponding port on the waiting service.
####
Example: Reverse Proxy
Example: Your browser makes an http request to service.example.com
the browser will send a request on port 80 to that domain.
It will be answered by the reverse proxy, which has a table of ports to match to a domain.
the service will be listening on port 8080 and the reverse proxy will send it there.
#
Port Table
I utilize the following ports for my home setup.
Nginx