[ECODP-dev] Redirect CKAN user login page to SSL server

John Glover john.glover at okfn.org
Mon May 6 15:35:24 UTC 2013


Hello,

The CKAN login page is under the /user prefix, so the most simple solution
to this is to redirect all calls to this path to the SSL site.

One way to do this is to create two server blocks in the NGINX config: one
for the unencrypted server listening on port 80 and the other for the SSL
server listening on port 443. Then in the unencrypted server, add a simple
redirect for all calls to /user to the same url but with 'https' in front
of it.

An example NGINX config that does this for a localhost server is attached.


Regards,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130506/a3b17847/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default.conf
Type: application/octet-stream
Size: 3042 bytes
Desc: not available
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130506/a3b17847/attachment-0001.obj>


More information about the ecodp-dev mailing list