[Mongrel] mod_proxy, mongrel, redirect issue
jeremy.cavagnolo at gmail.com
Wed Aug 20 12:45:12 EDT 2008
I am configuring apache 2.2 to serve my rails app through mongrel at
the root of my server. First, I redirect all http traffic to https
with the following:
RedirectPermanent / https://emiliano #this server is only accessed internally
Inside the <VirtualHost *:443> section, I have the following
configuration, which seems extremely standard:
Allow from all
ProxyPass /stylesheets !
ProxyPass /images !
ProxyPass / balancer://mongrel/
ProxyPassReverse / balancer://mongrel/
When I point my browser to "https://emiliano" I get the login page
that I expect. When I submit the login form the authorization is
properly processed (I checked the access log). However, my browser is
then directed to https://emilianousers/home (note the missing "/"
between hostname and 'users') which of course cannot be found. If I
manually insert the slash I am properly directed to the user home
page. I can click on links all day long and everything works, but
when I try to submit any form, the form is processed properly, but the
same issue with the missing slash returns.
I have tried removing the proxy balancer and going directly to the
mongrel instance, but I get the same behavior. I have also removed
and replaced trailing slashes in my ProxyPass directives with no
Because I can't seem to find any other documentation of this issue, I
am left believing that this is a very trivial problem.
More information about the Mongrel-users