Questions on getting Xerte Toolkits installed on your server and questions about authentication and user logins.

Conversion to https

Plus d'informations
il y a 9 ans 10 mois #4022 par SOASBruce
Conversion to https a été créé par SOASBruce
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
Les utilisateur(s) suivant ont remercié: davidw

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 10 mois #4028 par SOASBruce
Réponse de SOASBruce sur le sujet Conversion to https
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?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 10 mois #4031 par tom
Réponse de tom sur le sujet Conversion to https
Hi Bruce,

I moved the topic.

Tom

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 10 mois #4032 par tom
Réponse de tom sur le sujet Conversion to https
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)
Code:
RewriteEngine On RewriteOptions inherit RewriteCond %{HTTPS} off RewriteRule ^/(.*) https://%{SERVER_NAME}/$1

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 10 mois #4033 par SOASBruce
Réponse de SOASBruce sur le sujet Conversion to https
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

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 10 mois #4034 par tom
Réponse de tom sur le sujet Conversion to https
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?

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.122 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo