This article is mostly to remind myself on how to setup a reverse proxy so that I can host multiple domain names.  I like to tinker with internet programming.  When I was younger, the only way was hosting your own web applications.  Today all the cool kids fire up a virtual private server (VPS). But if you are just messing around, cheap, or simple do not drink the cloud KoolAid, I am going to present a couple options all of which I have used.  In all cases I highly recommend using a dynamic domain name service (DDNS), like duckdns.

Exposing Multiple Ports: Multiple applications can be hosted from a single IP by setting up different ports and forwarding them.  This is the easiest and fastest way.  The only disadvantages is that now you have to include the port in URLs and ports can be used only once .

Multiple Static IPs: If you contact your service provided they can give you information on buying blocks of static IPs.  I had to switch from a personal to business account to make this work.   This is a very-very expensive option, in addition, the business packages have downgraded upload and download making this a very poor value option.  The static IPs allow multiple sites to be host, all using port 80.

Reverse Proxy:  Ok so this was very difficult to setup — not for the faint of heart.  STEP 1 Buy the cheapest possible VPS, I used VULTR for $5 a mo.  STEP2  Install NGINX and configure for Reverse Proxy.  Here, multiple registered domain names are passed to DDNS all with different ports.  If you router supports it, you can even map these ports back to port 80 on specific machines in your local area network.   These added jumps slows traffic a bit, so I also use CloudFlare to speed things up.

Add to:
| Digg it | RawSugar | Reddit | Slashdot | Y! MyWeb

No Responses to “Hosting Multiple Websites from Home”  

  1. No Comments

Leave a Reply