1e0e5e65ecd97cf06e02fd3090dfdb3cdecc2269
[irspy-moved-to-github.git] / web / conf / apache1.3 / newshawarma.conf
1 # $Id: newshawarma.conf,v 1.4 2009-05-26 07:29:56 mike Exp $
2 #
3 # Sample configuration for running an IRSpy web-site under Apache 1.3.
4 #
5 # This is the configuration that I use on the live machine,
6 # newshawarma, which is a PC running Debian GNU/Linux 3.1.
7 # On this machine, the IRSpy software is at
8 #       /home/mike/cvs/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/mike/cvs/irspy/web/conf/apache1.3/newshawarma.conf
13 #
14 # When running on Debian, don't forget to
15 # install libapache-request-perl as well as libhtml-mason-perl,
16 # otherwise Mason will fail mysteriously.
17
18 # And do NOT attempt to install ZAP on the same apache, that is known
19 # to fail!
20
21 <VirtualHost 83.133.64.64>
22     ServerName irspy.indexdata.com
23     ErrorLog     /var/log/apache-irspy/irspy-error.log
24     CustomLog    /var/log/apache-irspy/irspy-access.log combined
25     DocumentRoot /home/mike/cvs/irspy/web/htdocs
26     <FilesMatch "\.(html|css)$">
27      SetHandler perl-script
28      PerlHandler HTML::Mason::ApacheHandler
29     </FilesMatch>
30     PerlAddVar MasonCompRoot "private => /home/mike/cvs/irspy/web/htdocs"
31     PerlSetVar MasonDataDir              /home/mike/cvs/irspy/web/data
32     PerlSetVar IRSpyLibDir               /home/mike/cvs/irspy/lib
33     PerlSetEnv PERL5LIB /home/mike/cvs/irspy/lib
34     <Location /admin>
35         AuthType Basic
36         AuthName "IRSpy Administration"
37         AuthUserFile /home/mike/cvs/irspy/web/conf/htpasswd
38         Require user admin
39     </Location>
40 </VirtualHost>
41
42 <VirtualHost 83.133.64.64>
43     ServerName targettest.indexdata.com
44     Redirect permanent / http://irspy.indexdata.com/
45 </VirtualHost>