3c17896908eff5c8709b4e7ab34fa3e581f5516a
[irspy-moved-to-github.git] / web / conf / apache2.0 / xeno-dev.conf
1 # This is the configuration that I (Mike) use on the development
2 # machine xeno, which is a Ubuntu 9.10 box.
3
4 <VirtualHost *:80>
5     ServerName x.irspy.indexdata.com
6
7     <Directory />
8         Allow from all
9         Require all granted
10     </Directory>
11
12     ErrorLog     /var/log/apache2/irspy-error.log
13     CustomLog    /var/log/apache2/irspy-access.log combined
14     DocumentRoot /home/mike/git/work/irspy/web/htdocs
15     <FilesMatch "\.(html|css)$">
16      SetHandler perl-script
17      PerlHandler HTML::Mason::ApacheHandler
18     </FilesMatch>
19
20     PerlSetVar MasonArgsMethod mod_perl
21
22     PerlAddVar MasonCompRoot "private => /home/mike/git/work/irspy/web/htdocs"
23     PerlSetVar MasonDataDir /tmp/irspy-mason
24     # IRSpyLibDir is used only to find source for online documentation
25     PerlSetVar IRSpyLibDir /home/mike/git/work/irspy/lib
26     PerlSetEnv PERL5LIB /home/mike/git/work/irspy/lib
27
28    # We need +Parent to make PerlSwitches -I work properly ... don't ask.
29    PerlOptions +Parent
30    PerlSwitches -I/home/mike/git/work/irspy/lib
31
32     <Location /admin>
33         AuthType Basic
34         AuthName "IRSpy Administration"
35         AuthUserFile /home/mike/git/work/irspy/web/conf/htpasswd
36         Require user admin
37     </Location>
38 </VirtualHost>
39