Stefano Masini wrote:
> I'm a newby Paste user and I might be saying rubbish, so in case
> please correct me.
> 
> I've been having quite a few problems using Pylons behind Apache with
> mod_proxy. In the end I figured it depended on PrefixMiddleware
> implementation, that was doing the wrong thing for me.
> 
> I'm referring to the implementation I found in:
> http://svn.pythonpaste.org/Paste/Deploy/trunk/paste/deploy/config.py
> 
> My Apache configuration is such that the 2 http headers added by
> mod_proxy have a different value. Specifically:
> 
> 'HTTP_X_FORWARDED_HOST': 'intra.pragma2000.com',
> 'HTTP_X_FORWARDED_SERVER': 'cedro.pragma2000.com',
> 
> PrefixMiddleware implementation takes the latter into account, but in
> my case it is the first that I would like to use. After all, I read on
> the documentation of mod_proxy (taken from
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers):
> 
> X-Forwarded-Host
>    The original host requested by the client in the Host HTTP request header.
> X-Forwarded-Server
>    The hostname of the proxy server.

Thanks for pointing this out.  I had spent some time figuring out 
exactly what's out there in terms of X-Forwarded-* headers, but I didn't 
find X-Forwarded-Host at the time.

I've updated PasteDeploy trunk with this.


-- 
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
             : Write code, do good : http://topp.openplans.org/careers

_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to