Forum Moderators: phranque

Message Too Old, No Replies

Redirect changes request

         

apunkto

3:16 pm on Dec 4, 2009 (gmt 0)

10+ Year Member



Hi all,

I have a following problem: I have a redirect made using virtual configuration in Apache Web Server. This configuration redirects all requests from external adress [ext.com...] to application which is running in internal machine [192.168.40.20...] Redirect works and users from outside the LAN can see the application, but as the application uses URL information from request, all the links and imports are made to 192.168.40.20 address and therefore are unavailable for external users.

Does anyone know any workaround for this problem? I would be grateful.

Thanks,
A.

jdMorgan

4:47 pm on Dec 4, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I assume you're using mod_proxy since this configuration pretty much requires it. See the various options available in Apache mod_proxy [httpd.apache.org] -- ProxyPassReverse, ProxyPreserveHost, etc. (That link is for Apache 2.2 -- Make sure that's the correct document for your server version.)

Jim