Towards IR-359
[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/Users/mike/git/work/irspy/lib -I/Users/mike/git/work/ZOOM-Perl/blib/lib -I/Users/mike/git/work/ZOOM-Perl/blib/arch
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        /var/log/apache2/irspy-error.log
24     CustomLog       /var/log/apache2/irspy-access.log combined
25     DocumentRoot /Users/mike/git/work/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 => /Users/mike/git/work/irspy/web/htdocs"
34     PerlSetVar MasonDataDir /tmp/irspy-mason
35     # IRSpyLibDir is used only to find source for online documentation
36     PerlSetVar IRSpyLibDir /Users/mike/git/work/irspy/lib
37
38     <Location /admin>
39         AuthType Basic
40         AuthName "IRSpy Administration"
41         AuthUserFile /Users/mike/git/work/irspy/web/conf/htpasswd
42         Require user admin
43     </Location>
44
45     ProxyRequests off
46     <Proxy *>
47       Order deny,allow
48       Allow from all
49     </Proxy>
50     ProxyPass         /toroid/ http://localhost:12367/
51     ProxyPassReverse  /toroid/ http://localhost:12367/
52 </VirtualHost>
53