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
| <VirtualHost *:80>
ServerName site3.fr
## Vhost docroot
DocumentRoot "/var/www/site3"
## Directories, there should at least be a declaration for /var/www
<Directory "/var/www/site3">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
## Logging
ErrorLog "/var/log/apache2/site3.log"
ServerSignature Off
CustomLog "/var/log/apache2/site3_access.log" combined
## Server aliases
ServerAlias <a href="http://www.site3.fr" target="_blank">www.site3.fr</a>
## Custom fragment
#RewriteEngine on
#RewriteCond %{SERVER_NAME} =site3.fr [OR]
#RewriteCond %{SERVER_NAME} =www.site3.fr
#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost> |