scorfel.fr/apache.conf
David Soulayrol e0d3de652b Initial Import.
2019-05-23 15:46:57 +02:00

57 lines
1.5 KiB
ApacheConf

<VirtualHost *:80>
DocumentRoot /var/www/scorfel.fr
ServerName scorfel.fr
ServerAlias www.scorfel.fr
RewriteEngine On
RewriteRule "^/(p/.*)" "http://scorfel.blogspot.fr/$1"
RewriteRule "^/(\d{4}/\d{2}/.*)" "http://scorfel.blogspot.fr/$1"
ErrorLog ${APACHE_LOG_DIR}/scorfel.fr_error.log
CustomLog ${APACHE_LOG_DIR}/scorfel.fr_access.log combined
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
<Directory /var/www/scorfel.fr>
Options -Indexes
AllowOverride All
Order allow,deny
allow from all
</Directory>
<IfModule alias_module>
Redirect permanent /index.html http://scorfel.blogspot.fr/index.html
</IfModule>
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
SSLCertificateFile /etc/letsencrypt/live/scorfel.fr/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/scorfel.fr/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
DocumentRoot /var/www/scorfel.fr
ServerName scorfel.fr
ServerAlias www.scorfel.fr
RewriteEngine On
RewriteRule "^/(p/.*)" "http://scorfel.blogspot.fr/$1"
RewriteRule "^/(\d{4}/\d{2}/.*)" "http://scorfel.blogspot.fr/$1"
ErrorLog ${APACHE_LOG_DIR}/scorfel.fr_error.log
CustomLog ${APACHE_LOG_DIR}/scorfel.fr_access.log combined
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
<Directory /var/www/scorfel.fr>
Options -Indexes
AllowOverride All
Order allow,deny
allow from all
</Directory>
<IfModule alias_module>
Redirect permanent /index.html http://scorfel.blogspot.fr/index.html
</IfModule>
</VirtualHost>
</IfModule>