summaryrefslogtreecommitdiff
path: root/apache2/sites-available/0_default
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2012-03-27 13:55:32 +0200
committerJonas Smedegaard <dr@jones.dk>2012-03-27 13:55:32 +0200
commita9bf97764205b57275d52075803222d445ea3ff2 (patch)
tree244364677aea2670d4b3fffb53280499c1c9d0e1 /apache2/sites-available/0_default
parent3314548c9846d7b4b556d6fc3dbbd2ad05c92341 (diff)
Modernize sample apache2 site snippets.
Diffstat (limited to 'apache2/sites-available/0_default')
-rw-r--r--apache2/sites-available/0_default30
1 files changed, 12 insertions, 18 deletions
diff --git a/apache2/sites-available/0_default b/apache2/sites-available/0_default
index 142392e..ce390fb 100644
--- a/apache2/sites-available/0_default
+++ b/apache2/sites-available/0_default
@@ -1,25 +1,19 @@
<VirtualHost *:443>
- ServerName wrong.example.com
- ServerAdmin webmaster@example.com
- DocumentRoot /home/webmaster/public_websites/wrong.example.com
+ ServerName wrong.example.com
+ ServerAdmin webmaster@example.com
+ DocumentRoot /home/webmaster/public_websites/wrong.example.com
- Include /etc/apache2/conf.d/local-ssl.conf
+ Include conf.d/local-ssl.conf
- <Location />
- Options +MultiViews
- DirectoryIndex index
- </Location>
- AddLanguage da .da
+ ErrorLog ${APACHE_LOG_DIR}/wrong.example.com-error.log
+ CustomLog ${APACHE_LOG_DIR}/wrong.example.com-access.log combined
</VirtualHost>
<VirtualHost *:80>
- ServerName wrong.example.com
- ServerAlias wrong
- ServerAdmin webmaster@example.com
- DocumentRoot /home/webmaster/public_websites/wrong.example.com
+ ServerName wrong.example.com
+ ServerAlias wrong
+ ServerAdmin webmaster@example.com
+ DocumentRoot /home/webmaster/public_websites/wrong.example.com
- <Location />
- Options +MultiViews
- DirectoryIndex index
- </Location>
- AddLanguage da .da
+ ErrorLog ${APACHE_LOG_DIR}/wrong.example.com-error.log
+ CustomLog ${APACHE_LOG_DIR}/wrong.example.com-access.log combined
</VirtualHost>