Bonjour,
Je viens vers vous car je n'arrive pas à faire fonctionner SquashTM en https.
J'ai tenté de suivre cette documentation mais sans succès https://sites.google.com/a/henix.fr/wik ... -use-https
Je suis en Apache 2.4 et SquashTM en version 1.19 sur une debian 9.
Pouvez-vous m'aider? Où me fournir un autre tuto?
Par avance merci
Squash TM en HTTPS
Re: Squash TM en HTTPS
Enfaite c'est bon pour le https cepandant c'est le rewrite qui ne fonctionne pas :
une idée?
Code : Tout sélectionner
<Location />
RewriteEngine on
RewriteCond %{HTTPS} !^on$ [NC]
RewriteCond %{HTTP_HOST} (^.*)$ [NC]
RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L]
</Location>
Re: Squash TM en HTTPS
C'est ok j'ai forcé le site à utiliser seulement du https en faisant une redirection permanente dans la conf apache.
Pour info voici ma configuration pour apache2.4 :
Pour info voici ma configuration pour apache2.4 :
Code : Tout sélectionner
<VirtualHost *:80>
ServerName xxxxxx
Redirect permanent / https://xxxxxx/
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLProxyEngine on
ServerName xxxxxxx
ErrorLog ${APACHE_LOG_DIR}/squash_error.log
DocumentRoot /var/www
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/myhost_access.log combined
SSLCertificateFile /etc/ssl/mon-certificat-serveur.crt
SSLCertificateKeyFile /etc/ssl/private/ma-clef-privee.key
<IfModule mod_proxy_http.c>
ProxyPreserveHost On
ProxyPass /squash http://localhost:8090/squash
ProxyPassReverse /squash http://localhost:8090/squash
</IfModule>
<IfModule mod_rewrite.c>
<IfModule mod_ssl.c>
<Location />
RewriteEngine on
RewriteCond %{HTTPS} !^on$ [NC]
RewriteCond %{HTTP_HOST} (^.*)$ [NC]
RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L]
</Location>
</IfModule>
</IfModule>
</VirtualHost>