httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt McCutchen <m...@mattmccutchen.net>
Subject Re: [users@httpd] Reverse Proxy URL confuion.
Date Wed, 04 Feb 2009 01:07:02 GMT
On Tue, 2009-02-03 at 18:43 -0600, Robert Steinmetz wrote:
> I am setting up a reverse proxy of an application. I have it working 
> mostly except I can get the URLs to respond like I want to. it seem it 
> should be simple but now I've gotten myself confused.
> 
> >       <VirtualHost * >
> >
> >        ServerName application.mydomain.com
> >       
> >        ProxyRequests Off
> >
> >         <Proxy *>
> >         Order deny,allow
> >         Allow from all
> >         </Proxy>
> >
> >         ProxyPreserveHost On
> >         ProxyPass / http://IPaddresshere/
> >         ProxyPassReverse /  http://IPaddress/
> >
> The application root is http://IPaddress/application I'd like the URL 
> http://application.mydomain.com to open the application login
> 
> The configuration above works if I open 
> http://application.mydomain.com/application.
> 
> I'd like to eliminate the  /application
> 
> If in <VirtualHost>I add
> 
> ProxyPass /http://IPaddress/application/
> 
> I get the login but subsequently I get
> 
> http://application.mydomain.com/application/file.aspx

It sounds like the application is generating an absolute link that you
need to rewrite with mod_proxy_html, as mentioned in the
ProxyPassReverse documentation:

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse

-- 
Matt


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message