c86e46d39691f185747fe08111165c4a5bd07fd4
[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     ErrorLog     /var/log/apache2/irspy-error.log
8     CustomLog    /var/log/apache2/irspy-access.log combined
9     DocumentRoot /usr/local/src/git/irspy/web/htdocs
10     <FilesMatch "\.(html|css)$">
11      SetHandler perl-script
12      PerlHandler HTML::Mason::ApacheHandler
13     </FilesMatch>
14
15     PerlSetVar MasonArgsMethod mod_perl
16
17     PerlAddVar MasonCompRoot "private => /usr/local/src/git/irspy/web/htdocs"
18     PerlSetVar MasonDataDir /tmp/irspy-mason
19     # IRSpyLibDir is used only to find source for online documentation
20     PerlSetVar IRSpyLibDir /usr/local/src/git/irspy/lib
21     PerlSetEnv PERL5LIB /usr/local/src/git/irspy/lib
22
23    # We need +Parent to make PerlSwitches -I work properly ... don't ask.
24    PerlOptions +Parent
25    PerlSwitches -I/usr/local/src/git/irspy/lib
26
27     <Location /admin>
28         AuthType Basic
29         AuthName "IRSpy Administration"
30         AuthUserFile /usr/local/src/git/irspy/web/conf/htpasswd
31         Require user admin
32     </Location>
33 </VirtualHost>
34