Problems with SSL(django-sslserver)

82 views
Skip to first unread message

malhar

unread,
Apr 3, 2014, 2:32:15 AM4/3/14
to django...@googlegroups.com
I am using Django 1.6.2 in virtualenv, Ubuntu 12.04 LTS. As I wanted to shift my project to https, I installed django-sslserver.
The project needs self signing, and works fine for Home Page. However, apps in my django project encounter problems.
Not all pages are redirected to https, and hence causes 404 error (works only if explicitly prefixed as https). Also, the
overall template (appearance i.e. static files?) is lost. What exactly is happening here? How to make sure that all
pages are redirected to https and works the same way as in http?

shmengie

unread,
Apr 3, 2014, 9:45:58 AM4/3/14
to django...@googlegroups.com
django-sslserver is only for development purposes...  I've not used django-sslserver, so I can't comment on it.  I've used local apache server for testing.

It's not terribly difficult to configure apache or nginx for self signing or commercial certs.  Though I do find google necessary for that chore.

I've used apache a couple of times for HTTPS: and there's been little to no magic getting the pages redirected.  Browsers usually stay with the root, in fact you have to go out of your way to get them to point to http://unencryped links.

I've use apache's mod-rewrite to ensure http: is redirected to https: for the appropriate paths/URIs, but that's for landing on the server, not keeping it straight after the fact, tho.. I suppose if you continue to have these issues, it could be helpful.
Reply all
Reply to author
Forward
0 new messages