HTTPS

Nico
Messages : 3
Inscription : mar. avr. 25, 2023 2:43 pm

HTTPS

Message par Nico »

Bonjour à tous,

Je tente de configurer Squash TM en HTTPS. J'ai bien suivi la doc https://tm-fr.doc.squashtest.com/v3/ins ... https.html en passant par un reverse proxy. Seulement lorsque je tente d'accéder à l'appli j'obtiens l'erreur SSL_ERROR_RX_RECORD_TOO_LONG.

Voici ma configuration Apache (je précise que je possède mes propres certificats et non des auto-signés) :

Code : Tout sélectionner

<VirtualHost *:80>

	ServerName monServeur
	
	Redirect permanent / https://monServeur:8443/

</VirtualHost>

<VirtualHost *:443>
	
	ServerName monServeur
	ErrorLog ${APACHE_LOG_DIR}/myhost_error.log
	DocumentRoot /var/www/html	
	LogLevel warn
	CustomLog ${APACHE_LOG_DIR}/myhost_access.log combined

	SSLEngine on
	SSLProxyEngine on
	
	SSLCertificateFile    /etc/ssl/monCertif.crt
	SSLCertificateKeyFile /etc/ssl/monCertif.key
	SSLCertificateChainFile /etc/ssl/monCertifChaine.cer

	<IfModule mod_proxy.c>
		ProxyPreserveHost On
		ProxyPass /squash http://localhost:8443
		ProxyPassReverse /squash http://localhost:8443
	</ifModule>

	<IfModule rewrite_module>
		LogLevel alert rewrite:trace
		
		<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>

Avez-vous une idée d'où vient le problème ?

D'avance merci.
Répondre

Revenir à « Installation & Base de données / Installation & Database »