Hi, I have the following problems to solve. I only have 1 public IP (which is also dinamic so I use dyndns services) and 4 webservers on the network. 2 apache and 2 IP cameras. Now I can access them all from different ports redirected from the router to the internal IP. Is there a way to solve the problem in a manner like: something.dyndns.org/web1 goes to webserver 1 something.dyndns.org/web1 goes to webserver 2 and so on? Thank you very much for your help! Paolo
It certainly is possible but not with normal domestic routers. You will need something more sophisticated such as a server running a proxy like Squid or Apache with mod_proxy. Once you have your router set up to send traffic on one of the ports to the server running Squid, you can tell Squid to proxy any traffic that starts with /web1 to web1's internal IP address and traffic that starts with /web2 to web2's internal IP address.
a fairly simple way to do this would be with HTTP redirects. put a script at /web1/index.php that looks like header ('HTTP/1.1 301 Moved Permanently'); header ('Location: http ://www .example.com:9999'); so, when someone types in the url you want to give out, they are auto redirected to the right port. I'm assuming you can put a port number in a HTTP 301 redirect. I don't see why you couldn't, but I've never tried it myself.
I think the point was to not have strange port numbers visible to the outside world but to serve everything from port 80 even though different directories would come from different back-end servers. Was that the intention ?