Bonjour,
Merci pour l'accueil sur le forum ;-)
J'ai un soucis de paramétrages pour faire pointer vers mon site correctement.
Je vais l'appeler site.be
Mon site a le certificat SSL et tourne en https.
symptômes:
- http://www.site.be redirige vers https://www.site.be > ok
- https://www.site.be > ok
- http://site.be redirige vers https://site.be > "Cette connexion n'est pas privée"
- https://site.be > "Cette connexion n'est pas privée"
mes réglages actuels:
virtualhost sitebe.conf
dans le dossier du site j'ai un htaccess voici la partie redirection au cas où:
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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 <VirtualHost site.be:80> ServerAdmin <a href="mailto:studio7700@live.be">studio7700@live.be</a> ServerName site.be ServerAlias <a href="http://www.site.be" target="_blank">www.site.be</a> DocumentRoot /var/www/dossierdusite <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/studio> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost>
Est-ce que vous avez une idée de mon erreur?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 RewriteEngine on RewriteCond% {HTTP_HOST} ^ site.be [NC, OR] RewriteCond% {HTTP_HOST} ^ <a href="http://www.site.be" target="_blank">www.site.be</a> [NC] (*). RewriteRule ^ $ https://www.site.be/$1 [L, R = 301, NC] # Redirection vers HTTPS RewriteCond %{SERVER_PORT} ^80$ [OR] RewriteCond %{HTTPS} =off RewriteRule ^(.*)$ https://www.site.be/$1 [R=301,L]
Partager