HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


securing pages in ocP with a SSL cert

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#85696 (In Topic #17592)

Honoured member

Hello,
I'm hosting a site for a blind beterans association and of course they have material and information they want secured.  I've placed a SSL certificate on their domain, and now need to figure out the best way of using it.

I could set up a redirection so that any request place to the welcome or site zone would automatically forward it to the https, but if I do that any bookmarks to other pages or course wouldn't be secure.  I know the ocP has a per page https request option, but it also says there's a performance hit.

My question is, has any one else ran in to this, and if so how did you handle it?
Back to the top
 
Posted
Rating:
#85697
Avatar

You can change ocPortal's base URL to include 'https' instead of 'http', and then set up a redirect rule in your .htaccess file.

I found an article that suggested:

Code

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

That looks right, it'll maintain the addresses in the redirects.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#85708

Honoured member

Thanks Chris.  Once again you've come to the rescue.  

Now for the stupid question, and it must be that I've been up for 36hours.  To change the base url in ocp don't I use the config_editor.php?
Back to the top
 
Posted
Rating:
#85711
Avatar

I've been up for 36hours

Uh oh.

Yes, run config_editor.php, or manually edit info.php.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#85717

Honoured member

Gosh, I knew that.  Had a brain lapse  there for a moment.  and that worked fine.  I'm getting that annoying "Security Warning" message now, but will deal with that.  Thanks again.
Back to the top
 
Posted
Rating:
#85721

Honoured member

GOD, I really should go to bed.  The probelm that was causing me to get that pesky "Security Warning" blaa blaa blaa popup window was due to a url I had pointint to the image on the frontpage.  I was using an absolute path instead of a relative path.  I just changed http: to https: and it went away.  i really should start using relative paths where possible instead of being so old school.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: