voici ma configuration qui fonctionne , j'arrive a me connecter en mode securisé sauf que quand je demande le numero de port $_SERVER['SERVER_PORT'] il esttou le temps sur 80 meme quand on est en https:

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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
...
 
NameVirtualHost *
#config test for multi ip/ssl
#NameVirtualHost *:80
NameVirtualHost 192.168.10.9:443
 
 
...
 
<VirtualHost *>
	ServerName devphp.monserveur.lan
	ServerAdmin webmaster@entrerpise.com
	DocumentRoot /home/Sites/default/
 
</VirtualHost>
 
include *.conf
 
#####mon fichier ssl.conf#####
 
...
 
<VirtualHost 192.168.10.9:443>
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
 
....
</VirtualHos>
 
####mon fichier ssl_monsite.conf ##########
 
 
<VirtualHost *:80>
	ServerAdmin webmaster@monsite.com
	DocumentRoot /home/Sites/monsite/www/
	ServerName monsite...
	ServerAlias monalias
	ErrorLog /home/Sites/monsite/logs/error_log
	CustomLog /home/Sites/monsite/logs/access_log common
	RewriteEngine on
	RewriteRule ^/([a-z]{2})/([^/]*)/([^/]*)?$  /index.php?wlang=$1&wpage=$2 [L,QSA]
	RewriteRule ^/([a-z]{2})/([^/]*)/([^/]*)/([^/]*)?$  /index.php?wlang=$1&wpage=$2&param=$3 
 
[L,QSA]
		<Directory "/home/Sites/monsite/www">
		AllowOverride None
		Order allow,deny
		Allow from all
	</Directory>
		AddDefaultCharset UTF-8
</VirtualHost>
 
<VirtualHost 192.168.10.9:443>
	ServerAdmin webmaster@monsite.com
	DocumentRoot /home/Sites/monsite/www/
	ServerName monsite...
	ServerAlias monalias
	ErrorLog /home/Sites/monsite/logs/error_log
	CustomLog /home/Sites/monsite/logs/access_log common
	RewriteEngine on
	RewriteRule ^/([a-z]{2})/([^/]*)/([^/]*)?$  /index.php?wlang=$1&wpage=$2 [L,QSA]
	RewriteRule ^/([a-z]{2})/([^/]*)/([^/]*)/([^/]*)?$  /index.php?wlang=$1&wpage=$2&param=$3 
 
[L,QSA]
		<Directory "/home/Sites/monsite/www">
		AllowOverride None
		Order allow,deny
		Allow from all
	</Directory>
		AddDefaultCharset UTF-8
 
 
</VirtualHost>
si j'essaie d'aller sur une page qui n'existe pas j'ai droit a un 404 avec signature apache et numero de port 80 meme pour une page https.

si j'essaie de modifier le fichier ssl_monsite.conf
pour mettre <VirtualHost _default_:443> au lieu de <VirtualHost 192.168.10.9:443> ,j'ai un 404 not found avec numero de port 443 (pour des pages qui existent cette fois).

je suppose que apache est mal configuré donc si vous avez une idée pourquoi ces variables de $_SERVER ne prennent pas en consideration le fait qu'on soit en https ...
merci par avance