RE: ProxyPassReverse Incorrectly Handling Redirects

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

 



Vincent-

Thanks for the reply. Although the example I gave was a Rails app (in
this case, running on Mongrel), I seem to get the same behavior with a
Trac app I'm hosting as well. 

Up to now I've been avoiding looking at a rails-specific solution
because I'm hosting other applications (like Trac) as well as off the
shelf rails (Instiki). It seems like doing this through Apache is more
elegant than trying to hack up every application I'm running
individually.


Andy Selvig


-----Original Message-----
From: Vincent Bray [mailto:noodlet@xxxxxxxxx] 
Sent: Monday, October 29, 2007 11:32 AM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  ProxyPassReverse Incorrectly Handling
Redirects

On 29/10/2007, Selvig, Andy <Andy.Selvig@xxxxxxxxxxxx> wrote:
> The problem comes in when the application sends redirects to relative 
> pages. If the application redirects to /main/list, my browser goes to 
> this page:

That's perhaps because the Location: header of redirects must always be
a full url. If you're using restful routes in rails, try _url rather
than _path.

Better still, figure out how to tell rails that it's routed at
/wtbasement/ rather than /. I've a suspicion that it's possible but
dependant on how rails is hosted (rails/fastcgi/etc). That'd remove the
need for mod_proxy_html altogether. Perhaps you could fiddle routes.rb
to fit?

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


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