922095c80fe4f9a4b7811488651ca91078ae94f6
[irspy-moved-to-github.git] / web / conf / apache2.0 / cfspy.conf
1 # $Id: cfspy.conf,v 1.3 2009-04-16 18:09:44 wosch Exp $
2 #
3 # Sample configuration for running an IRSpy web-site under Apache 2.x.
4 #
5 # This is the configuration that I use on the development machine,
6 # xeno, which is a Fujitu-Siemens SCENIC X102 PC running Ubuntu Linux
7 # release 6.06.  On this machine, the IRSpy software is at
8 #       /home/wosch/indexdata/irspy
9 #
10 # This file can be included in the Apache configuration by adding a
11 # line like this to apache.conf or one of its included files:
12 #       Include /home/wosch/indexdata/irspy/web/conf/apache2.0/cfspy.conf
13 #
14 # When running on Ubuntu (and probably Debian), don't forget to
15 # install libapache-request-perl as well as libhtml-mason-perl,
16 # otherwise Mason will fail mysteriously.
17
18 #NameVirtualHost 192.168.1.75
19
20 <VirtualHost *:80>
21     ServerName cfspy.indexdata.com
22
23     ErrorLog     /var/log/apache2/cfspy-error.log
24     CustomLog    /var/log/apache2/cfspy-access.log combined
25     DocumentRoot /home/wosch/indexdata/irspy/web/htdocs
26     <FilesMatch "\.(html|css)$">
27      SetHandler perl-script
28      PerlHandler HTML::Mason::ApacheHandler
29     </FilesMatch>
30
31     PerlSetVar MasonArgsMethod mod_perl
32
33     PerlAddVar MasonCompRoot "private => /home/wosch/indexdata/irspy/web/htdocs"
34     PerlSetVar MasonDataDir              /home/wosch/indexdata/irspy/web/data
35     PerlSetVar IRSpyLibDir               /home/wosch/indexdata/irspy/lib
36     PerlSetEnv PERL5LIB /home/wosch/indexdata/irspy/lib
37
38    # We need +Parent to make PerlSwitches -I work properly ... don't ask.
39    PerlOptions +Parent
40    PerlSwitches -I/home/wosch/indexdata/irspy/lib
41
42     <Location /admin>
43         AuthType Basic
44         AuthName "IRSpy Administration"
45         AuthUserFile /home/wosch/indexdata/irspy/web/conf/htpasswd
46         Require user admin
47     </Location>
48 </VirtualHost>
49