Bonjour,
J'essaye actuellement de configurer deux accès possible a un service HTTP. J'aimerai que lorsque l'utilisateur y accède en HTTP (et donc pas en HTTPS) il tombe sur une page lui informant qu'il doit utiliser HTTPS et qu'il va devoir accepter mon certificat.
J'ai pour le moment cette configuration:
Comment puis-je arrivé au résultat escompté ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 Alias /squirrelmail /usr/share/squirrelmail <Directory /usr/share/squirrelmail> Options FollowSymLinks <IfModule mod_php5.c> php_flag register_globals off </IfModule> <IfModule mod_dir.c> DirectoryIndex index.php </IfModule> <IfModule mod_rewrite.c> <IfModule mod_ssl.c> <Location /squirrelmail> RewriteEngine on RewriteCond %{HTTPS} !^on$ [NC] RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L] </Location> </IfModule> </IfModule>
Partager