enable robots.txt for irspy-test
[irspy-moved-to-github.git] / web / conf / apache2.0 / irspy-test.conf
1 # Sample configuration for running an IRSpy web-site under Apache 2.x.
2 #
3 # This is the configuration that I use on the development machine 
4 #       /usr/local/src/git/irspy-test
5 #
6 # This file can be included in the Apache configuration by adding a
7 # line like this to apache.conf or one of its included files:
8 #       Include /usr/local/src/git/irspy-test/web/conf/apache2.0/irspy.conf
9 #
10 # For debian & unbuntu: please read irspy/README for a list of depending packages
11 #
12
13 <VirtualHost *:80>
14     ServerName irspy-test.indexdata.com
15
16     ErrorLog     /var/log/apache2/irspy-test-error.log
17     CustomLog    /var/log/apache2/irspy-test-access.log combined
18     DocumentRoot /usr/local/src/git/irspy-test/web/htdocs
19
20     Alias /robots.txt /usr/local/src/git/irspy-test/web/htdocs/robots-test.txt
21
22     <FilesMatch "\.(html|css)$">
23      SetHandler perl-script
24      PerlHandler HTML::Mason::ApacheHandler
25     </FilesMatch>
26
27     PerlSetVar MasonArgsMethod mod_perl
28
29     PerlAddVar MasonCompRoot "private => /usr/local/src/git/irspy-test/web/htdocs"
30     PerlSetVar MasonDataDir              /usr/local/src/git/irspy-test/web/data
31     PerlSetVar IRSpyLibDir               /usr/local/src/git/irspy-test/lib
32     PerlSetEnv IRSpyDbName      localhost:8019/IR-Explain---1
33
34     PerlSetEnv PERL5LIB /usr/local/src/git/irspy/lib
35
36    # We need +Parent to make PerlSwitches -I work properly ... don't ask.
37    PerlOptions +Parent
38    PerlSwitches -I/usr/local/src/git/irspy-test/lib
39
40     <Location /admin>
41         AuthType Basic
42         AuthName "IRSpy Administration"
43         AuthUserFile /usr/local/src/git/irspy-test/web/conf/htpasswd
44         Require user admin
45     </Location>
46 </VirtualHost>
47