#################
# ACCES AU SITE #
#################
ServerName [NOM SERVEUR ou FQDN]
ServerAlias [NOM COURT]
ServerAdmin [xxxx@xxxx.xx]
DocumentRoot [/CHEMIN/VERS/LE-SITE]
#RewriteEngine On
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
##############
# CONF BASIC #
##############
#--GESTION DES DROITS--#
Options -Indexes
Require all granted
#--GESTION HSTS--#
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains"
#--GESTION ERREURS--#
ErrorDocument 404 /erreur.html
#--LOGS--#
ErrorLog [/CHEMIN/VERS/LES/LOGS/DU-SITE/errors.log]
LogLevel warn
CustomLog [/CHEMIN/VERS/LES/LOGS/DU-SITE/acces.log] combined
#################
# ACCES AU SITE #
#################
ServerName [NOM SERVEUR ou FQDN]
ServerAlias [NOM COURT]
ServerAdmin [xxxx@xxxx.xx]
DocumentRoot [/CHEMIN/VERS/LE-SITE]
RewriteEngine On
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
##############
# CONF BASIC #
##############
#--GESTION DES DROITS--#
Options -Indexes
Require all granted
#--GESTION HSTS--#
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains"
#--GESTION ERREURS--#
ErrorDocument 404 /erreur.html
#--LOGS--#
ErrorLog [/CHEMIN/VERS/LES/LOGS/DU-SITE/errors.log]
LogLevel warn
CustomLog [/CHEMIN/VERS/LES/LOGS/DU-SITE/acces.log] combined
##############
# CONF HTTPS #
##############
SSLEngine on
SSLCertificateFile [/CHEMIN/VERS/LES/LE-CERTIFICAT/certificat.pem]
SSLCertificateKeyFile [/CHEMIN/VERS/LES/LA-CLEF/clef.key]