6442e68abffe97b9cf704bce7ea4ca8208d72d75
[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 # Empirally, it seems that including this next line prevents the bug
10 # in which some but not all requests result in the error:
11 #       Undefined subroutine &ZOOM::IRSpy::connect_to_registry
12 # (This ought not to make any difference, as the Apache2::Request
13 # module should of course get loaded from within IRSpy anyway, but you
14 # never know with Apache.)
15 PerlModule Apache2::Request
16
17 <VirtualHost *:80>
18     ServerName x.irspy.indexdata.com
19     <Directory />
20         Allow from all
21     </Directory>
22
23     ErrorLog     /opt/local/apache2/logs/irspy-error.log
24     CustomLog    /opt/local/apache2/logs/irspy-access.log combined
25     DocumentRoot /usr/local/src/git/irspy/web/htdocs
26     <FilesMatch "\.(html|css)$">
27      SetHandler perl-script
28      PerlHandler HTML::Mason::ApacheHandler
29     </FilesMatch>
30
31     PerlSetVar MasonArgsMethod mod_perl
32
33     PerlAddVar MasonCompRoot "private => /usr/local/src/git/irspy/web/htdocs"
34     PerlSetVar MasonDataDir /tmp/irspy-mason
35     # IRSpyLibDir is used only to find source for online documentation
36     PerlSetVar IRSpyLibDir /usr/local/src/git/irspy/lib
37     PerlSetEnv PERL5LIB /usr/local/src/git/irspy/lib
38
39     <Location /admin>
40         AuthType Basic
41         AuthName "IRSpy Administration"
42         AuthUserFile /usr/local/src/git/irspy/web/conf/htpasswd
43         Require user admin
44     </Location>
45 </VirtualHost>
46