37a4a55dc5699fa60d077ae50b2065442511ba75
[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
9 <VirtualHost *:80>
10     ServerName x.irspy.indexdata.com
11     <Directory />
12         Allow from all
13     </Directory>
14
15     ErrorLog     /opt/local/apache2/logs/irspy-error.log
16     CustomLog    /opt/local/apache2/logs/irspy-access.log combined
17     DocumentRoot /usr/local/src/git/irspy/web/htdocs
18     <FilesMatch "\.(html|css)$">
19      SetHandler perl-script
20      PerlHandler HTML::Mason::ApacheHandler
21     </FilesMatch>
22
23     PerlSetVar MasonArgsMethod mod_perl
24
25     PerlAddVar MasonCompRoot "private => /usr/local/src/git/irspy/web/htdocs"
26     PerlSetVar MasonDataDir /tmp/irspy-mason
27     # IRSpyLibDir is used only to find source for online documentation
28     PerlSetVar IRSpyLibDir /usr/local/src/git/irspy/lib
29     PerlSetEnv PERL5LIB /usr/local/src/git/irspy/lib
30
31     <Location /admin>
32         AuthType Basic
33         AuthName "IRSpy Administration"
34         AuthUserFile /usr/local/src/git/irspy/web/conf/htpasswd
35         Require user admin
36     </Location>
37 </VirtualHost>
38