5ac65cc0fe82a909e287c0ebfbc147c4d7655447
[irspy-moved-to-github.git] / web / conf / apache2.0 / cfspy.conf
1 # $Id: cfspy.conf,v 1.2 2009-04-15 18:23:02 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     PerlAddVar MasonCompRoot "private => /home/wosch/indexdata/irspy/web/htdocs"
31     PerlSetVar MasonDataDir              /home/wosch/indexdata/irspy/web/data
32     PerlSetVar IRSpyLibDir               /home/wosch/indexdata/irspy/lib
33     PerlSetEnv PERL5LIB /home/wosch/indexdata/irspy/lib
34
35    # We need +Parent to make PerlSwitches -I work properly ... don't ask.
36    PerlOptions +Parent
37    PerlSwitches -I/home/wosch/indexdata/irspy/lib
38
39     <Location /admin>
40         AuthType Basic
41         AuthName "IRSpy Administration"
42         AuthUserFile /home/wosch/indexdata/irspy/web/conf/htpasswd
43         Require user admin
44     </Location>
45 </VirtualHost>
46