1 # $Id: cfspy.conf,v 1.4 2009-04-16 18:31:20 wosch Exp $
3 # Sample configuration for running an IRSpy web-site under Apache 2.x.
5 # This is the configuration that I use on the development machine us2
6 # /usr/local/src/git/indexdata/irspy
8 # This file can be included in the Apache configuration by adding a
9 # line like this to apache.conf or one of its included files:
10 # Include /usr/local/src/git/indexdata/irspy/web/conf/apache2.0/irspy.conf
12 # When running on Ubuntu (and probably Debian), don't forget to
13 # install libapache-request-perl as well as libhtml-mason-perl,
14 # otherwise Mason will fail mysteriously.
17 # sudo apt-get install libxml-libxslt-perl
18 # sudo apt-get install libhtml-mason-perl
19 # sudo apt-get install libapache2-request-perl
21 #NameVirtualHost 192.168.1.75
24 ServerName irspy.indexdata.com
25 ServerAlias irspy2.indexdata.com irspy
27 ErrorLog /var/log/apache2/irspy-error.log
28 CustomLog /var/log/apache2/irspy-access.log combined
29 DocumentRoot /usr/local/src/git/indexdata/irspy/web/htdocs
30 <FilesMatch "\.(html|css)$">
31 SetHandler perl-script
32 PerlHandler HTML::Mason::ApacheHandler
35 PerlSetVar MasonArgsMethod mod_perl
37 PerlAddVar MasonCompRoot "private => /usr/local/src/git/indexdata/irspy/web/htdocs"
38 PerlSetVar MasonDataDir /usr/local/src/git/indexdata/irspy/web/data
39 PerlSetVar IRSpyLibDir /usr/local/src/git/indexdata/irspy/lib
40 PerlSetEnv PERL5LIB /usr/local/src/git/indexdata/irspy/lib
42 # We need +Parent to make PerlSwitches -I work properly ... don't ask.
44 PerlSwitches -I/usr/local/src/git/indexdata/irspy/lib
48 AuthName "IRSpy Administration"
49 AuthUserFile /usr/local/src/git/indexdata/irspy/web/conf/htpasswd