New script irspy-rewrite-records.pl that rewrites all the records in
[irspy-moved-to-github.git] / web / conf / apache2.0 / cfspy.conf
1 # $Id: cfspy.conf,v 1.4 2009-04-16 18:31:20 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 us2
6 #       /home/wosch/indexdata/irspy
7 #
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
11 #
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.
15 #
16 # For Apache 2.x
17 #  sudo apt-get install libxml-libxslt-perl 
18 #  sudo apt-get install libhtml-mason-perl
19 #  sudo apt-get install libapache2-request-perl
20
21 #NameVirtualHost 192.168.1.75
22
23 <VirtualHost *:80>
24     ServerName cfspy.indexdata.com
25
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
32     </FilesMatch>
33
34     PerlSetVar MasonArgsMethod mod_perl
35
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
40
41    # We need +Parent to make PerlSwitches -I work properly ... don't ask.
42    PerlOptions +Parent
43    PerlSwitches -I/home/wosch/indexdata/irspy/lib
44
45     <Location /admin>
46         AuthType Basic
47         AuthName "IRSpy Administration"
48         AuthUserFile /home/wosch/indexdata/irspy/web/conf/htpasswd
49         Require user admin
50     </Location>
51 </VirtualHost>
52