Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####################
- # Serveur Bagu.biz #
- ####################
- # VirtualHost pour le port 80 (HTTP)
- <VirtualHost *:80>
- ServerName bagu.biz
- ServerAlias autoconfig.bagu.biz blog.bagu.biz genealogie.bagu.biz webmail.bagu.biz www.bagu.biz
- # Redirection vers HTTPS
- RewriteEngine On
- RewriteCond %{HTTPS} !=on
- RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
- </VirtualHost>
- <VirtualHost *:443>
- ServerName bagu.biz
- ServerAlias autoconfig.bagu.biz blog.bagu.biz genealogie.bagu.biz webmail.bagu.biz www.bagu.biz
- DocumentRoot ${APACHE_WORK_DIR}/wwwbagubiz/html/
- # Définition du VirtualDocumentRoot pour les sous-domaines
- VirtualDocumentRoot ${APACHE_WORK_DIR}/wwwbagubiz/html/%1
- # Activation du SSL/TLS
- SSLEngine On
- SSLCertificateFile ${CERT_DIR}/fullchain.cer
- SSLCertificateKeyFile ${CERT_DIR}/cert.key
- SSLCACertificateFile ${CERT_DIR}/cacert.pem
- SSLUseStapling on
- # Réécriture pour forcer l'utilisation de www
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^bagu.biz [NC]
- RewriteRule ^ %{REQUEST_SCHEME}://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
- <IfModule fcgid_module>
- <Files ~ "\.php$">
- AddHandler fcgid-script .php
- FcgidWrapper "${PHP_DIR}/php-cgi.exe -d error_log=${PHP_LOG_DIR}/bagu.biz.php_error.log" .php
- </Files>
- </IfModule>
- ErrorLog ${APACHE_LOG_DIR}/bagu.biz.apache.error.log
- <Directory ${APACHE_WORK_DIR}/wwwbagubiz/html/>
- Options +FollowSymLinks -Indexes -Includes -ExecCGI
- AllowOverride all
- <RequireAll>
- Require all granted
- Require not env BlockCountry
- </RequireAll>
- </Directory>
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment