From b4befa140b72659b609d050108f550f5aae38f40 Mon Sep 17 00:00:00 2001 From: David Soulayrol Date: Sun, 17 Feb 2019 09:44:23 +0100 Subject: [PATCH] Added Apache configuration files. --- apache.conf | 14 ++++++++++++++ content/.htaccess | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 apache.conf create mode 100644 content/.htaccess diff --git a/apache.conf b/apache.conf new file mode 100644 index 0000000..7234833 --- /dev/null +++ b/apache.conf @@ -0,0 +1,14 @@ + + DocumentRoot /var/www/tousenscene34.fr + ServerName tousenscene34.fr + ServerAlias www.tousenscene34.fr + + AllowOverride All + + + ErrorDocument 403 /403.html + ErrorDocument 404 /404.html + + ErrorLog ${APACHE_LOG_DIR}/tousenscene34.fr_error.log + CustomLog ${APACHE_LOG_DIR}/tousenscene34.fr_access.log combined + diff --git a/content/.htaccess b/content/.htaccess new file mode 100644 index 0000000..d8d6238 --- /dev/null +++ b/content/.htaccess @@ -0,0 +1,4 @@ +RewriteEngine On +RewriteBase / +RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] +RewriteRule ^(.*)$ http://%1/$1 [R=301,L]