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