[Paste] paste.request.construct_url should handle HTTP_X_FORWARDED_SERVER

2006-10-20 Thread Shannon -jj Behrens
Hi, I'm putting a Pylons application behind Apache by proxying it. That means that when I call paste.request.construct_url, it returns a URL for localhost. I think it's a useful and harmless feature to have Paste automatically respect HTTP_X_FORWARDED_SERVER if present. I did this in Aquarium,

Re: [Paste] paste.request.construct_url should handle HTTP_X_FORWARDED_SERVER

2006-10-20 Thread Ian Bicking
Shannon -jj Behrens wrote: > Hi, > > I'm putting a Pylons application behind Apache by proxying it. That > means that when I call paste.request.construct_url, it returns a URL > for localhost. I think it's a useful and harmless feature to have > Paste automatically respect HTTP_X_FORWARDED_SERVE

[Paste] paste.auth.cookie questions

2006-10-20 Thread Shannon -jj Behrens
I really like the paste.auth.cookie module, but I have a few questions: 1. This is less important, but why wasn't the old school Cookie module used instead of constructing the cookie by hand? 2. I need to set the domain of the cookie, but there isn't a way. This relates slightly to question 1. I

Re: [Paste] paste.request.construct_url should handle HTTP_X_FORWARDED_SERVER

2006-10-20 Thread Shannon -jj Behrens
On 10/20/06, Ian Bicking <[EMAIL PROTECTED]> wrote: > Shannon -jj Behrens wrote: > > Hi, > > > > I'm putting a Pylons application behind Apache by proxying it. That > > means that when I call paste.request.construct_url, it returns a URL > > for localhost. I think it's a useful and harmless featu

Re: [Paste] paste.request.construct_url should handle HTTP_X_FORWARDED_SERVER

2006-10-20 Thread Ian Bicking
Shannon -jj Behrens wrote: > On 10/20/06, Ian Bicking <[EMAIL PROTECTED]> wrote: >> Shannon -jj Behrens wrote: >> > Hi, >> > >> > I'm putting a Pylons application behind Apache by proxying it. That >> > means that when I call paste.request.construct_url, it returns a URL >> > for localhost. I thi

Re: [Paste] paste.request.construct_url should handle HTTP_X_FORWARDED_SERVER

2006-10-20 Thread Shannon -jj Behrens
On 10/20/06, Ian Bicking <[EMAIL PROTECTED]> wrote: > Shannon -jj Behrens wrote: > > On 10/20/06, Ian Bicking <[EMAIL PROTECTED]> wrote: > >> Shannon -jj Behrens wrote: > >> > Hi, > >> > > >> > I'm putting a Pylons application behind Apache by proxying it. That > >> > means that when I call paste.