copy
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 14 Apr 2010 12:30:45 +0000 (12:30 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 14 Apr 2010 12:30:45 +0000 (12:30 +0000)
web/conf/apache2.0/irspy-test.conf [new file with mode: 0644]

diff --git a/web/conf/apache2.0/irspy-test.conf b/web/conf/apache2.0/irspy-test.conf
new file mode 100644 (file)
index 0000000..d7bc973
--- /dev/null
@@ -0,0 +1,45 @@
+# $Id: cfspy.conf,v 1.4 2009-04-16 18:31:20 wosch Exp $
+#
+# Sample configuration for running an IRSpy web-site under Apache 2.x.
+#
+# This is the configuration that I use on the development machine 
+#      /usr/local/src/git/irspy
+#
+# This file can be included in the Apache configuration by adding a
+# line like this to apache.conf or one of its included files:
+#      Include /usr/local/src/git/irspy/web/conf/apache2.0/irspy.conf
+#
+# For debian & unbuntu: please read irspy/README for a list of depending packages
+#
+
+<VirtualHost *:80>
+    ServerName irspy.indexdata.com
+    ServerAlias irspy2.indexdata.com irspy
+
+    ErrorLog     /var/log/apache2/irspy-error.log
+    CustomLog    /var/log/apache2/irspy-access.log combined
+    DocumentRoot /usr/local/src/git/irspy/web/htdocs
+    <FilesMatch "\.(html|css)$">
+     SetHandler perl-script
+     PerlHandler HTML::Mason::ApacheHandler
+    </FilesMatch>
+
+    PerlSetVar MasonArgsMethod mod_perl
+
+    PerlAddVar MasonCompRoot "private => /usr/local/src/git/irspy/web/htdocs"
+    PerlSetVar MasonDataDir              /usr/local/src/git/irspy/web/data
+    PerlSetVar IRSpyLibDir               /usr/local/src/git/irspy/lib
+    PerlSetEnv PERL5LIB /usr/local/src/git/irspy/lib
+
+   # We need +Parent to make PerlSwitches -I work properly ... don't ask.
+   PerlOptions +Parent
+   PerlSwitches -I/usr/local/src/git/irspy/lib
+
+    <Location /admin>
+       AuthType Basic
+       AuthName "IRSpy Administration"
+       AuthUserFile /usr/local/src/git/irspy/web/conf/htpasswd
+       Require user admin
+    </Location>
+</VirtualHost>
+