On Mon, 2006-05-08 at 15:58 +0100, Paul Wright wrote:
> Hi all,
> 
<snip>

> I've seen in a few places [1][2] that the trailing slash is important
> on the ProxyPass directive but if I include that then I get a BAD
> CLIENT error in mongrel due to too many  slashes:
> 
This is really weird that you have to add the //.  That type of URL is
rejected because it violates the actual URI grammar (from what I
understand of it).  If balancer needs this, then I'm curious why it's
bleeding that // to the backend.

I'll check it out to find out why this is the accepted wisdom.

> The two main problems I have now is that all rendered links are
> missing the sub-directory and if any redirects are issued then they
> are for http://admin.example.com:12345/ instead of the ssl version
> https://admin.example.com:12345/ - is this because mongrel/rails is
> only seeing a http request?  And if so is it possible to let the app
> know that it's actually https and in a subdirectory?

I'll have to look at this.  It might be that mongrel will have to detect
that the request was secured and add the https, but I really think Rails
should do this since this is where the redirect is generated.

Take a look at the headers that Mongrel receives and see if you are
getting the header that indicates the request was secured.  If you are
then Rails must not be honoring it.  If not then you need to tell your
web server to start sending it.


-- 
Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/


_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to