Thank you both -- that's what I was looking for (Daniel -- I am using
reverse proxy so that it explains it).

On Thu, Mar 17, 2011 at 10:14 AM, Eric Rasmussen <[email protected]>wrote:

>
>
> On Thu, Mar 17, 2011 at 6:31 AM, Gael Pasgrimaud <[email protected]> wrote:
>
>> Hi,
>>
>> You can also use the NewRequest event to set the correct scheme for
>> all new request:
>>
>>
>> http://docs.pylonsproject.org/projects/pyramid/dev/narr/events.html#configuring-an-event-listener-imperatively
>>
>> --
>> Gael
>>
>> On Thu, Mar 17, 2011 at 1:57 PM, Daniel Holth <[email protected]> wrote:
>> > Eric,
>> >
>> > You are probably running your site behind a reverse proxy with https://to
>> > the web server forwarding over http:// to Pyramid. In that case Pyramid
>> > itself is accessed over http:// so it generates http:// URLs.
>> >
>> > You can use the PrefixMiddleware included with Paste to interpret
>> > X-Forwarded-Scheme and other X- proxy headers. If your application is
>> the
>> > only application then the prefix is just /.
>> >
>> >
>> http://pythonpaste.org/deploy/modules/config.html?highlight=prefix#paste.deploy.config.PrefixMiddleware
>> >
>> > --
>> > 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.
>> >
>>
>> --
>> 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.
>>
>>
>

-- 
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