Passer au contenu principal

Configuration Apache

<VirtualHost *:80>
    ServerName WWWWW.fr
    ServerAlias www.WWWWWWWW.fr
    ServerAdmin admin@WWWWWWW.fr
    DocumentRoot /var/www/html/WWWWWWW.fr

    <Directory /var/www/html/WWWWWWWWW.fr>
        Options +FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    <Directory /var/www/html/WWWWWWW.fr/data>
        AllowOverride None
        Require all denied
    </Directory>

    <IfModule mod_headers.c>
      Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
    </IfModule>
    ErrorLog /var/log/httpd/WWWWWW.fr-error.log
    CustomLog /var/log/httpd/WWWWWWWW.fr-access.log combined
</VirtualHost>