]> git.sesse.net Git - wloh/commitdiff
Add an example Apache configuration fragment.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 4 Aug 2013 13:48:25 +0000 (15:48 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 4 Aug 2013 13:48:25 +0000 (15:48 +0200)
apache.conf [new file with mode: 0644]

diff --git a/apache.conf b/apache.conf
new file mode 100644 (file)
index 0000000..205e5dc
--- /dev/null
@@ -0,0 +1,27 @@
+# Example Apache fragment for running the page.
+<VirtualHost *:80>
+    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
+
+    <Location />
+       Options ExecCGI MultiViews
+       AddHandler cgi-script .pl
+    </Location>
+</VirtualHost>
+