RE: [users@httpd] Mod_proxy and javascript problem

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

 



That is probably because the ProxyPassReverse are no longer adequate...

Unfortunately I am afraid this will be almost impossible to fix due to a problem in Apache regarding the interpretation of ProxyPassReverse in <Location> context.

Nick, correct me if I am wrong, but what Jerôme would probably need is:

ProxyPreserveHost On

<Location /class/>
	ProxyPass http://1.0.0.2/
	ProxyPassReverse http://www.toto.net/
</Location>

<Location /prod/>
	ProxyPass http://1.0.0.3/
	ProxyPassReverse http://www.toto.net/
</Location>

<Location />
	ProxyPass http://1.0.0.1/
	ProxyPassReverse http://www.toto.net/
</Location>

This, however, will not work unless you apply a patch now available at http://issues.apache.org/bugzilla/show_bug.cgi?id=10722 (but which I have not tested myself)

I guess you are between a rock and a hard place... 

-ascs

-----Original Message-----
From: Jérôme Tytgat [mailto:jerome.tytgat@xxxxxxxxxxx] 
Sent: Friday, August 26, 2005 11:03 AM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] Mod_proxy and javascript problem



Axel-Stéphane SMORGRAV a écrit :
> You know what? Some applications build URLs based on the value of the 
> Host header. If you use ProxyPreserveHost, it may just turn out to solve your problem altogether so you will not need to rewrite the HTML contents.
> 
> -ascs

Once I activate "ProxyPreserveHost" the URL are not rewritten anymore, issuing 404 errors because it's going to the wrong server :

=> http://www.toto.net/LYCEE/Admin/Home.htm

should be : http://www.toto.net/class/LYCEE/Admin/Home.htm

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


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