On Aug 11, 2007, at 3:22 AM, Stefano Masini wrote:

>
> Hi all,
>
> I've been having terrible headaches with serving my Pylons app behind
> Apache with ProxyPass directive.
> Specifically, it seems I cannot get the app to work correctly in the
> authentication phase.
> I wrote this in the config file:
>
> filter-with = proxy-prefix
>
> [filter:proxy-prefix]
> use = egg:PasteDeploy#prefix
> prefix = /robur
> translate_forwarded_server = true
>
> But initially it wasn't working. I then figured that the problem was
> my apache was setting different values for HTTP_X_FORWARDED_SERVER and
> HTTP_X_FORWARDED_HOST. Paste's PrefixMiddleware makes use of the
> former, but the correct value for me was in the latter. So I tweaked
> PrefixMiddleware to make use of that instead.
> Now it seems to get it right.
>
> But it still doesn't work.
>
> I'm using the form authentication method and in the form action I get
> this auto-generated url:
> http://intra.pragma2000.com/robur/
>
> Note the trailing slash.
> When I hit the login button, the url in the browser changes to
> http://intra.pragma2000.com/robur./
>
> Note the dot before the trailing slash.
> Obviously the server refuses to work out this url.

Do things act normally when authkit is disabled? It's possible the  
issue is on the apache side. What does your ProxyPass configuration  
look like?

--
Philip Jenvey



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to