Re: Reverse Proxy URL confuion.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux