From: Steinar H. Gunderson Date: Sun, 4 Aug 2013 13:48:25 +0000 (+0200) Subject: Add an example Apache configuration fragment. X-Git-Url: https://git.sesse.net/?p=wloh;a=commitdiff_plain;h=548c4eccb9eea30314c3b30fc800d48366fff24c Add an example Apache configuration fragment. --- diff --git a/apache.conf b/apache.conf new file mode 100644 index 0000000..205e5dc --- /dev/null +++ b/apache.conf @@ -0,0 +1,27 @@ +# Example Apache fragment for running the page. + + ServerAdmin sgunderson@bigfoot.com + DocumentRoot /srv/wloh.sesse.net/www + ServerName wloh.sesse.net + + LogLevel info + ErrorLog /var/log/apache2/error-wloh.sesse.net.log + CustomLog /var/log/apache2/access-wloh.sesse.net.log combined + + ServerSignature On + AddDefaultCharset utf-8 + + RewriteEngine on + RewriteRule ^/[a-z][a-z]-[A-Z][A-Z]/(.*) /$1 [QSA,L] + RewriteRule ^/[a-z][a-z]-[A-Z][A-Z] / [QSA,L] + Redirect / /nb-NO/ + + DirectoryIndex index.pl + + + Options ExecCGI MultiViews + AddHandler cgi-script .pl + + + +