listen on 1 port, redirect to 2 internal ips
This is kinda odd, but I'll explain my prob the best I can..I have a web server behind a router with all requests to port 80 pointed to the internal ip of the server. Now my friend wants to host a server too. His server is on a seperate internal ip, but since all requests to port 80 go to mine, his domain just reaches my website.
I've tried just a hacky .htaccess to redirect all requests to my index.htm file (which I really dont utilize) to forward to his ip, but then everyone sees his internal ip instead of his domain. So that's not really a correct answer.
I assumed that he could just change the port his server listens to, then have the router forward all packets to that port to his server, but I don't think if you can set dns to direct to a specific port.
Am I missing something that I could use with the .htaccess file to forward all requests to his domain onto his ip?
