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
| NameVirtualHost xx.xx.xx.xx:80
<VirtualHost xx.xx.xx.xx:80>
ServerAdmin <a href="mailto:quelqun@mondomaine.tld">quelqun@mondomaine.tld</a>
ServerName SecondSousDomaine.mondomaine.tld
Redirect / <a href="https://SecondSousDomaine.mondomaine.tld/" target="_blank">https://SecondSousDomaine.mondomaine.tld/</a>
</VirtualHost>
<VirtualHost xx.xx.xx.xx:443>
ServerAdmin <a href="mailto:quelqun@mondomaine.tld">quelqun@mondomaine.tld</a>
ServerName SecondSousDomaine.mondomaine.tld
DocumentRoot /var/www/SecondSousDomaine
<Directory "/var/www/SecondSousDomaine">
Options Indexes FollowSymLinks MultiViews None
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error_SecondSousDomaine.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access_SecondSousDomaine.log combined
ServerSignature On
SSLEngine on
SSLCertificateFile /etc/apache2/certificats/SecondSousDomaine.crt
SSLCertificateKeyFile /etc/apache2/certificats/SecondSousDomaine.key
</VirtualHost> |
Partager