| M300A |
Edit: Le problème est presque résolu, je n'ai plus qu'un petit problème de gestion des différents certificats SSL :
Voila donc comment est fais la gestion des virtual host (default et dspam).
/etc/apache2/sites-available/default |
Code :
- ### Section Virtual Host HTTP ###
- #################################
- NameVirtualHost *:80
- <VirtualHost *:80>
- DocumentRoot /var/www
- <Directory />
- Options FollowSymLinks
- AllowOverride None
- </Directory>
- <Directory /var/www/>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride None
- Order allow,deny
- allow from all
- # This directive allows us to have apache2's default start page
- # in /apache2-default/, but still have / go to the right place
- RedirectMatch ^/$ /apache2-default/
- </Directory>
- <Directory "/usr/lib/cgi-bin">
- AllowOverride None
- Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
- Order allow,deny
- Allow from all
- </Directory>
- <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>
- ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
- Alias /doc/ "/usr/share/doc/"
- 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
- ServerSignature On
- </VirtualHost>
- ### Fin Section Virtual Host HTTP ###
- #####################################
- ### Section Virtual Host HTTPS ###
- ##################################
- NameVirtualHost *:443
- <VirtualHost *:443>
- DocumentRoot /var/www
- SSLEngine on
- SSLCertificateFile /etc/apache2/ssl/le-vert.homelinux.org.pem
- <Directory />
- Options FollowSymLinks
- AllowOverride None
- </Directory>
- <Directory /var/www/>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride None
- Order allow,deny
- allow from all
- # This directive allows us to have apache2's default start page
- # in /apache2-default/, but still have / go to the right place
- RedirectMatch ^/$ /apache2-default/
- </Directory>
- <Directory "/usr/lib/cgi-bin">
- AllowOverride None
- Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
- Order allow,deny
- Allow from all
- </Directory>
- <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>
- ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
- Alias /doc/ "/usr/share/doc/"
- 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
- ServerSignature On
- </VirtualHost>
- ### Fin Section Virtual Host HTTPS ###
- ######################################
|
/etc/apache2/sites-available/dspam |
Code :
- ### Section Virtual Host HTTPS ###
- ##################################
- <VirtualHost *:443>
- SSLEngine on
- SSLCertificateFile /etc/apache2/ssl/dspam.le-vert.homelinux.org.pem
- DocumentRoot /var/www/dspam
- ServerName dspam.le-vert.homelinux.org
- SuexecUserGroup dspam dspam
- <Directory /var/www/dspam/>
- Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
- AddHandler cgi-script .cgi .pl
- AllowOverride None
- Order deny,allow
- Deny from all
- AuthType Basic
- AuthName "DSPAM Control Center"
- AuthUserFile /var/www/dspam/etc/htpasswd
- Require valid-user
- Satisfy Any
- RedirectMatch ^/$ /dspam.cgi
- </Directory>
- ErrorLog /var/log/apache2/error-dspam.log
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
- CustomLog /var/log/apache2/access-dspam.log combined
- ServerSignature On
- </VirtualHost>
- ### Fin Section Virtual Host HTTPS ###
- ######################################
|
Du coup malgré la spécification de SSLCertificateFile dans chaque vhost, lorsque j'accède à dspam.le-vert.homelinux.org j'ai une erruer coté client qui me dit que le certificat appartient a le-vert.homelinux.org et non pas à dspam.le-vert.homelinux.org (pourtant il a bien été généré comme tel ;)).
Il semblerait que ca soit le certif du site par défaut qui soit pris en compte.
Avez vous une idée pour résoudre ce problème ?
Merci :jap: |