Re: URL modified to localhost by apache

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

 



On 03/08/07, aadi <mishra.aadi@xxxxxxxxx> wrote:
> ProxyPass /timeRec http://locahost:5080/timeRec
> and the reverse proxy pass as well. the problem is when i access the
> application thru apache as proxy that is
>
> http://devint01.xxx.com/timeRec i get mis configured url on the page that
> results
>
> i.e the register.jsp link shows http://localhost/timeRec/register.jsp from
> any machine on the network where i access the devint01 server.
>
> whe i go through the tomcat directly i.e.
> http://devint01.xxx.com:5080/timeRec
>
> then all the link start directing to
> http://devint01.xxx.com/timeRec/<further URL path........>

Sounds like your webapp is using the host name of the request to
construct urls back to itself, though it's odd that it drops the port.
In any case, it may help to use an IP address in the ProxyPass
directive, and ProxyPreserveHost On to send the original Host: header
to Tomcat.

-- 
noodl

---------------------------------------------------------------------
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