J'ai un problème de configuration de vhost avec ssl
j'ai un domaine XXX.org qui fonctionne tres bien en SSL
mais des que je met un certificat sur mail.XXX.org donc toujours sur le port 443 mon domaine XXX.Org ne fonctionne plus....
pour resumer, quand je veux passer tous mes virtual server apache sur le port 443 et bien il n'y en a plus qu'un seul qui fonctionne !
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 <VirtualHost *:443> ServerName mail.XXX.org DocumentRoot /usr/share/squirrelmail <Directory /usr/share/squirrelmail> # php_value register_globals On # refer to Debian bug #128226 php_flag register_globals on php_value open_basedir /usr/share/squirrelmail:/etc/squirrelmail/:/var/lib/squirrelmail/data/ php_admin_flag safe_mode off Options Indexes FollowSymLinks </Directory> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %{Host}i" alternc CustomLog /var/log/apache2/access.log alternc SSLEngine on SSLCertificateFile /etc/ssl/server.crt SSLCertificateKeyFile /etc/ssl/server.key </VirtualHost> <VirtualHost *:443> ServerName www.XXX.org DocumentRoot /var/alternc/html/a/admin//XXXorg <Directory "/var/alternc/html/a/admin//XXXorg"> php_admin_value open_basedir "/var/alternc/html/a/admin//XXXforg:/usr/share/php/:/var/alternc/tmp:/tmp" Options +MultiViews -FollowSymLinks +SymLinksIfOwnerMatch AllowOverride AuthConfig FileInfo Limit Options Indexes </Directory> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %{Host}i" alternc CustomLog /var/log/apache2/access.log alternc SSLEngine on SSLCertificateFile /root/CERT_MANAGER/server.org.crt SSLCertificateKeyFile /root/CERT_MANAGER/server.org.key SSLCACertificateFile /root/CERT_MANAGER/CERTIFICATE_AUTHORITY/ca-cert.pem </VirtualHost> <Virtualhost *:443> ServerName XXX.org KeepAlive Off RewriteEngine On RewriteRule ^/(.*)$ http://www.XXX.org/$1 [R=301,L] LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %{Host}i" alternc CustomLog /var/log/apache2/access.log alternc SSLEngine on SSLCertificateFile /root/CERT_MANAGER/server.org.crt SSLCertificateKeyFile /root/CERT_MANAGER/server.org.key SSLCACertificateFile /root/CERT_MANAGER/CERTIFICATE_AUTHORITY/ca-cert.pem </Virtualhost>
Partager