Added Apache configuration files.

This commit is contained in:
David Soulayrol 2019-02-17 09:44:23 +01:00
parent c86106a79b
commit b4befa140b
2 changed files with 18 additions and 0 deletions

14
apache.conf Normal file
View file

@ -0,0 +1,14 @@
<VirtualHost *:80>
DocumentRoot /var/www/tousenscene34.fr
ServerName tousenscene34.fr
ServerAlias www.tousenscene34.fr
<Directory "/var/www/tousenscene34.fr">
AllowOverride All
</Directory>
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
</VirtualHost>

4
content/.htaccess Normal file
View file

@ -0,0 +1,4 @@
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]