linuxtechie
Explorer
Folks,
Consider this:
Mine home internet has ip address of the range:
192.168.1.1-192.168.1.10
Each of these have been dynamically assigned domain as pune.linuxtechie.net. Hence there hostname are well defined hostname and can be accessed from the net or the home.
For e.g. the router is router.pune.linuxtechie.net, mine laptop running ubuntu is ubuntu.pune.linuxtechie.net. In the home intranet each host has different ip address.
However on the internet front, all of these host have the same ip address. Lets say an application app1 is running on port 1234 on ubuntu. This app1 is now available as
ubuntu.pune.linuxtechie.net:1234 from anywhere, viz. intranet / internet.
Now the question:
I would like to run a proxy server on ubuntu so that it redirects as given:
http://ubuntu.pune.linuxtechie.net/app1/ -> http://ubuntu.pune.linuxtechie.net:1234/
Constraints: The server must modify the page content so that the hostname and the port number are automatically replaced by the former (real world url) when its is seen from the internet. However once a request comes to the actual server (app1), the url http://ubuntu.pune.linuxtechie.net/app1/ should be replaced with the port combination.
Also does this kind of proxy server provide authentication module? Any suggestions? Please feel free to clear doubts.
Please suggest.
+LT
Consider this:
Mine home internet has ip address of the range:
192.168.1.1-192.168.1.10
Each of these have been dynamically assigned domain as pune.linuxtechie.net. Hence there hostname are well defined hostname and can be accessed from the net or the home.
For e.g. the router is router.pune.linuxtechie.net, mine laptop running ubuntu is ubuntu.pune.linuxtechie.net. In the home intranet each host has different ip address.
However on the internet front, all of these host have the same ip address. Lets say an application app1 is running on port 1234 on ubuntu. This app1 is now available as
ubuntu.pune.linuxtechie.net:1234 from anywhere, viz. intranet / internet.
Now the question:
I would like to run a proxy server on ubuntu so that it redirects as given:
http://ubuntu.pune.linuxtechie.net/app1/ -> http://ubuntu.pune.linuxtechie.net:1234/
Constraints: The server must modify the page content so that the hostname and the port number are automatically replaced by the former (real world url) when its is seen from the internet. However once a request comes to the actual server (app1), the url http://ubuntu.pune.linuxtechie.net/app1/ should be replaced with the port combination.
Also does this kind of proxy server provide authentication module? Any suggestions? Please feel free to clear doubts.
Please suggest.
+LT