[opencms-dev] Force HTTPS for workplace access

Paul-Inge Flakstad flakstad at npolar.no
Fri Apr 11 15:19:31 CEST 2014


LOL I have been sitting here too long %-) Should’ve seen that myself, as I’ve been creating redirects like crazy these last weeks ...

This works like a charm – of course. Thanks for the lightning fast reply, Arash :)

BTW, I slightly modified the rule:
RewriteRule ^/system/login/(.*)$ https://www2014.npolar.no/system/login/$1 [R=301,L]

Cheers,
Paul

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Arash Kaffamanesh
Sent: 11. april 2014 15:04
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Force HTTPS for workplace access

Hi,
you shall use an apache rewrite rule in your vhost to bump the user to the login page:

RewriteRule ^/system/login.* https://<workplaceserver>/system/login/<https://%3cworkplaceserver%3e/system/login/> [L,R]

See also page 36 here:

http://ow.ly/uFzGk

Kind Regards,
Arash


On Fri, Apr 11, 2014 at 2:53 PM, Paul-Inge Flakstad <flakstad at npolar.no<mailto:flakstad at npolar.no>> wrote:
Hi,

I’d like to force HTTPS for workplace login / communication. Is there an easy way?

According to the wiki (http://www.opencms-wiki.org/wiki/Enforcing_SSL_Encryption_for_the_Opencms_workplace ), “somebody [who] tries to access the workplace using an unsafe connection, [...] will be automatically redirected to the secured connection”.

Well, not so in my case – I can access the workplace login using *both* HTTP and HTTPS, no HTTP -> HTTPS redirect.

OpenCms is 7.5.2. I’ve got Apache in front.

Cheers,
Paul


_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140411/b6c20646/attachment.htm>


More information about the opencms-dev mailing list