Re: Django and SSL Deployment using mod_wsgi

2009-10-15 Thread Vitaly Babiy
Hey take a look at this http://www.howsthe.com/blog/2009/sep/20/djang-nginx-mod_wsgi-ssl/ Vitaly Babiy On Thu, Oct 15, 2009 at 5:30 PM, neri...@gmail.com wrote: > > I'm trying to do the same thing but I'm having problems getting nginx > to server over https. I removed all 443 references for apac

Re: Django and SSL Deployment using mod_wsgi

2009-10-15 Thread neri...@gmail.com
I'm trying to do the same thing but I'm having problems getting nginx to server over https. I removed all 443 references for apache and added them to my nginx/sites-available/domain.com, so I have a declaration for static content listening on port 80 and then another for ssl on 443. I'm totally ne

Re: Django and SSL Deployment using mod_wsgi

2009-09-01 Thread Graham Dumpleton
On Sep 1, 11:30 pm, Alex Robbins wrote: > Graham, > > I'm interested in understanding what you just said. It seems like you > are saying you can get the X-Forwarded-SSL environment variable to > automatically be set, without needing the django middleware. Seems > simple enough. X-Forwarded-SSL

Re: Django and SSL Deployment using mod_wsgi

2009-09-01 Thread Vitaly Babiy
Thanks guys for all the feedback, I have done what Francis said, we are using nginx and apache/mod_wsgi in the back. Nginx handles the ssl and it works great. Thanks for the help. Vitaly Babiy On Tue, Sep 1, 2009 at 9:30 AM, Alex Robbins wrote: > > Graham, > > I'm interested in understanding wha

Re: Django and SSL Deployment using mod_wsgi

2009-09-01 Thread Alex Robbins
Graham, I'm interested in understanding what you just said. It seems like you are saying you can get the X-Forwarded-SSL environment variable to automatically be set, without needing the django middleware. Seems simple enough. The middleware also handles redirects, so that someone accidentally g

Re: Django and SSL Deployment using mod_wsgi

2009-08-31 Thread Graham Dumpleton
On Sep 1, 3:39 am, Francis wrote: > We setup a Nginx proxy in front of Apache/WSGI and got Nginx to handle > the SSL cert and simply pass on a flag to WSGI if the connection was > coming through http or https. > > Next you'll want a SSL middleware, we > use:http://www.djangosnippets.org/snippe

Re: Django and SSL Deployment using mod_wsgi

2009-08-31 Thread Francis
We setup a Nginx proxy in front of Apache/WSGI and got Nginx to handle the SSL cert and simply pass on a flag to WSGI if the connection was coming through http or https. Next you'll want a SSL middleware, we use: http://www.djangosnippets.org/snippets/240/ Now its a matter of configuring which

Re: Django and SSL Deployment using mod_wsgi

2009-08-29 Thread Alex Robbins
You'll probably want to look into something like this: http://www.djangosnippets.org/snippets/880/ It allows you to set some urls to redirect so they are always https. Otherwise those silly users will go to credit card pages without https. On Aug 29, 1:04 am, Vitaly Babiy wrote: > Hey guys, > W

Django and SSL Deployment using mod_wsgi

2009-08-28 Thread Vitaly Babiy
Hey guys, What is the best way to deploy an app that uses mod_wsgi that some parts of it need to be behind SSL? Thanks, Vitaly Babiy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th