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
| # Repertoire par defaut ou tout nom non declare en VH doit arriver
NameVirtualHost /autre/repertoire
NameVirtualHost MON.IP:80
NameVirtualHost MON.IP:443
# Unique VH pour le SSL
<VirtualHost MON.IP:443>
ServerAdmin meuhlavache
ServerName normal.domain.tld
DocumentRoot /mon/rep/ssl/
<Directory />
Options FollowSymLinks
AllowOverride All All
</Directory>
<Directory /mon/rep/ssl/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All All
Order allow,deny
allow from all
</Directory>
SSLEngine on
SSLCertificateFile /etc/apache2/server.crt
SSLCertificateKeyFile /etc/apache2/server.key
</VirtualHost>
# VH pour normal.domain.tld
<VirtualHost MON.IP:80>
ServerAdmin meuhlavache
ServerName normal.domain.tld
DocumentRoot /mon/rep/pas/ssl/
<Directory />
Options FollowSymLinks
AllowOverride All All
</Directory>
<Directory /mon/rep/pas/ssl/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All All
Order allow,deny
allow from all
</Directory>
</VirtualHost> |
Partager