|
Well, was wondering what the recommended way for securing the django admin site with webfaction certificate, an internet search recommend the use of a middleware (which I'm not familar with), but was wondering is there a recommended & easy way for doing so in webfaction? |
|
I'm not sure if this is what everyone means, but the simplest solution I have found is this:
It might take a little while for the update to take affect. One of the other answers shows you how to update your httpd.conf to redirect only /admin to https. As a note I noticed that when I first checked https and updated the https version of the site didn't work. Then I unchecked it and pressed update again. The https version of the site immediately started working but then stopped after a few minutes. I checked it again, and it didn't work (i'm assuming after some period of time it would start working), so I unchecked it, and made sure it worked which it did and then immediately rechecked the option. It continued working and hasn't stopped since. If you want a site to work on HTTP and HTTPS, then you must create two site records, one for each. Nevermind on this, apparently that forces the whole site https, and doesn't maintain the normal http. |