On Wed, 2012-01-25 at 13:19 -0800, guyc wrote: > Hi > > Apologies if I've missed this in the docs but I need a bit of steer > with using https and pyramid. Thinking of using nginx as a proxy as > per the docs deployment example and want to know if the recommended > approach is to use rewrite rules at the proxy level to switch to https > or should this be done in pyramid. If the latter, then how is this > achieved? > > E.g. if a user requests http://mysite//login and this needs to go over > https, how can this be switched/redirected to https://mysite//login in > pyramid?
If you're using the latest Pyramid (which uses Waitress as a default WSGI server), see: http://docs.pylonsproject.org/projects/waitress/en/latest/#using-behind-a-reverse-proxy Most of that advice is applicable for any WSGI server, FWIW. - C -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.