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 # /home/wosch/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 /home/wosch/indexdata/irspy/web/conf/apache2.0/cfspy.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 cfspy.indexdata.com
26 ErrorLog /var/log/apache2/cfspy-error.log
27 CustomLog /var/log/apache2/cfspy-access.log combined
28 DocumentRoot /home/wosch/indexdata/irspy/web/htdocs
29 <FilesMatch "\.(html|css)$">
30 SetHandler perl-script
31 PerlHandler HTML::Mason::ApacheHandler
34 PerlSetVar MasonArgsMethod mod_perl
36 PerlAddVar MasonCompRoot "private => /home/wosch/indexdata/irspy/web/htdocs"
37 PerlSetVar MasonDataDir /home/wosch/indexdata/irspy/web/data
38 PerlSetVar IRSpyLibDir /home/wosch/indexdata/irspy/lib
39 PerlSetEnv PERL5LIB /home/wosch/indexdata/irspy/lib
41 # We need +Parent to make PerlSwitches -I work properly ... don't ask.
43 PerlSwitches -I/home/wosch/indexdata/irspy/lib
47 AuthName "IRSpy Administration"
48 AuthUserFile /home/wosch/indexdata/irspy/web/conf/htpasswd