Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Questions on getting Xerte Toolkits installed on your server and questions about authentication and user logins.
  • Page:
  • 1
  • 2

TOPIC:

Conversion to https 8 years 1 month ago #4022

  • SOASBruce
  • SOASBruce's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 12
  • Thank you received: 1
Hello,

This may seem like a daft question, but is there any special magic, or can someone point me to a list of steps to go through, to change the site to use https rather than the 'out of the box' http?

Thanks in advance.

Cheers,

Bruce
The following user(s) said Thank You: davidw

Please Inloggen or Create an account to join the conversation.

Conversion to https 8 years 1 month ago #4028

  • SOASBruce
  • SOASBruce's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 12
  • Thank you received: 1
Hello again,

Having had a search around the Forum and Apache wiki sites, it appears the things I need to do are:
Change the "site url" in the "Site settings" tab of Site Administration to replace http with https ;
as well as
Make changes to the Apache2 configuration files to use either the "Redirect" or "Rewrite" directives to push requests from http to https.

Is that correct, and which of the "Redirect" or "Rewrite" methods is recommended (presumably the directive would be included in the main configuration files, rather than in an .htaccess file)?

Also, I think I should've put this topic into the "Installation" forum originally. Is there any way for me to move it?

Please Inloggen or Create an account to join the conversation.

Conversion to https 8 years 1 month ago #4031

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
Hi Bruce,

I moved the topic.

Tom

Please Inloggen or Create an account to join the conversation.

Conversion to https 8 years 1 month ago #4032

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
Sometimes you cannot the management.php anymore after you have switched to https

In that case please modify the site_url column of the only record in the sitedetails table.

Please find below a suggestion for apache rewrite rules (in the normal non https VirtualHost entry)
 RewriteEngine On
 RewriteOptions inherit
 RewriteCond %{HTTPS} off
 RewriteRule ^/(.*) https://%{SERVER_NAME}/$1

Please Inloggen or Create an account to join the conversation.

Conversion to https 8 years 1 month ago #4033

  • SOASBruce
  • SOASBruce's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 12
  • Thank you received: 1
Hi Tom,

Thanks for that - both moving the topic and the suggestion for the rewrite rules.

I'm a bit confused when you say to add those lines "in the normal non https VirtualHost entry".
Are you saying I should already have a vhost.conf entry in the /etc/apache2/vhosts.d/ directory as part of the installation?

Cheers,

Bruce

Please Inloggen or Create an account to join the conversation.

Conversion to https 8 years 1 month ago #4034

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
No, but normally you would setup ssl in a vhost.d configuration, and these rules should NOT be in the ssl vhost file but either in the normal vhost configuration of this particular site, or in the general configuration.

Does that make more sense?

Please Inloggen or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.049 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search