Include PerlModule Apache2::Request to prevent run-time warning.
[irspy-moved-to-github.git] / web / conf / apache2.0 / cartney-dev.conf
1 # This is the configuration that I (Mike) use on the development
2 # machine cartney, which is a MacBook Pro
3 #
4 # See comments in mk2-config-cmc/apache/cmc-dev-mac.conf for details
5 # on running HTML::Mason-based sites under the apache2 port for Macs.
6
7 PerlSwitches -I/usr/local/src/git/irspy/lib
8 PerlModule Apache2::Request
9
10 <VirtualHost *:80>
11     ServerName x.irspy.indexdata.com
12     <Directory />
13         Allow from all
14     </Directory>
15
16     ErrorLog     /opt/local/apache2/logs/irspy-error.log
17     CustomLog    /opt/local/apache2/logs/irspy-access.log combined
18     DocumentRoot /usr/local/src/git/irspy/web/htdocs
19     <FilesMatch "\.(html|css)$">
20      SetHandler perl-script
21      PerlHandler HTML::Mason::ApacheHandler
22     </FilesMatch>
23
24     PerlSetVar MasonArgsMethod mod_perl
25
26     PerlAddVar MasonCompRoot "private => /usr/local/src/git/irspy/web/htdocs"
27     PerlSetVar MasonDataDir /tmp/irspy-mason
28     # IRSpyLibDir is used only to find source for online documentation
29     PerlSetVar IRSpyLibDir /usr/local/src/git/irspy/lib
30     PerlSetEnv PERL5LIB /usr/local/src/git/irspy/lib
31
32     <Location /admin>
33         AuthType Basic
34         AuthName "IRSpy Administration"
35         AuthUserFile /usr/local/src/git/irspy/web/conf/htpasswd
36         Require user admin
37     </Location>
38 </VirtualHost>
39