Forum Moderators: phranque
I have example.com hosted off site with a hosting company. I have a subdomain (sub1.example.com) which is hosted locally. My hosting provider sends sub1.example.com requests to my static IP and my router sends all port 80 requests to a particular machine on my LAN (192.*.*.150) and all is good. It works so smoothly I have 10-15 sites on that server (with virtual name based hosting).
But... now I need a second subdomain (sub2.example.com) and this second subdomain needs to be on a separate machine still on my LAN (192.*.*.151). <sigh> I don't know how to go about this! All the requests are port 80 and my router can only point to one machine. Should it point to a DNS server? Should it point to 192.*.*.150 and that machine automagically sends requests for sub2.example.com to a 192.*.*.151? Do my web servers need to be outside my router? Do I need a better router?
I could use any pointers in the right direction! I am sure this is going to be one of those head slap type answers.
ProxyPass / h*tp://192.1.1.50/
ProxyPass /webcam h*tp://192.1.1.50:8000/
There are caveats to this, you can read more at the page where I read about it:
[linuxfocus.org...]