LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   2 proxy servers in front of an application (https://www.linuxquestions.org/questions/linux-server-73/2-proxy-servers-in-front-of-an-application-820000/)

tkmsr 07-15-2010 11:12 AM

2 proxy servers in front of an application
 
I am having a website which is being served on my LAN as http://internal1.mydomain.com the vhost configuration for this is
Code:

ServerAdmin webmaster@localhost
 ServerName internal1.mydomain.com
ProxyRequests Off
        <Proxy *>
        Order deny,allow
        Allow from all
        </Proxy>
ProxyPreserveHost On

ProxyPass / http://localhost:9090/
ProxyPassReverse / http://localhost:9090/

it is working very fine on LAN. I am able to use my application completely from LAN.

There is another server which is having public IP and I want this website to be available on internet.

A request for public domain comes as

http://www.mypublicdomain.com/something

How do I transfer that internally so that it reaches or is being served by http://internal1.mydomain.com
Is it possible to change the ServerName of an HTTP Request in Apache2
if yes then how?


All times are GMT -5. The time now is 10:41 AM.