New
authorMike Taylor <mike@miketaylor.org.uk>
Fri, 9 Apr 2010 11:24:09 +0000 (12:24 +0100)
committerMike Taylor <mike@miketaylor.org.uk>
Fri, 9 Apr 2010 11:24:09 +0000 (12:24 +0100)
web/conf/apache2.0/xeno-dev.conf [new file with mode: 0644]

diff --git a/web/conf/apache2.0/xeno-dev.conf b/web/conf/apache2.0/xeno-dev.conf
new file mode 100644 (file)
index 0000000..ab274ec
--- /dev/null
@@ -0,0 +1,33 @@
+# This is the configuration that I use on the development machine xeno
+
+<VirtualHost *:80>
+    ServerName x.irspy.indexdata.com
+
+    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 /tmp/irspy-mason
+    # IRSpyLibDir is used only to find source for online documentation
+    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>
+