Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/irspy
[irspy-moved-to-github.git] / web / conf / apache2.0 / irspy.conf
1 # $Id: cfspy.conf,v 1.4 2009-04-16 18:31:20 wosch Exp $
2 #
3 # Sample configuration for running an IRSpy web-site under Apache 2.x.
4 #
5 # This is the configuration that I use on the development machine 
6 #       /usr/local/src/git/irspy
7 #
8 # This file can be included in the Apache configuration by adding a
9 # line like this to apache.conf or one of its included files:
10 #       Include /usr/local/src/git/irspy/web/conf/apache2.0/irspy.conf
11 #
12 # For debian & unbuntu: please read irspy/README for a list of depending packages
13 #
14
15 <VirtualHost *:80>
16     ServerName irspy.indexdata.com
17     ServerAlias irspy2.indexdata.com irspy
18
19     ErrorLog     /var/log/apache2/irspy-error.log
20     CustomLog    /var/log/apache2/irspy-access.log combined
21     DocumentRoot /usr/local/src/git/irspy/web/htdocs
22     <FilesMatch "\.(html|css)$">
23      SetHandler perl-script
24      PerlHandler HTML::Mason::ApacheHandler
25     </FilesMatch>
26
27     PerlSetVar MasonArgsMethod mod_perl
28
29     PerlAddVar MasonCompRoot "private => /usr/local/src/git/irspy/web/htdocs"
30     PerlSetVar MasonDataDir              /usr/local/src/git/irspy/web/data
31     PerlSetVar IRSpyLibDir               /usr/local/src/git/irspy/lib
32     PerlSetEnv PERL5LIB /usr/local/src/git/irspy/lib
33
34     #PerlSetEnv IRSpyDbName     localhost:8018/IR-Explain---1
35
36    # We need +Parent to make PerlSwitches -I work properly ... don't ask.
37    PerlOptions +Parent
38    PerlSwitches -I/usr/local/src/git/irspy/lib
39
40     <Location /admin>
41         AuthType Basic
42         AuthName "IRSpy Administration"
43         AuthUserFile /usr/local/src/git/irspy/web/conf/htpasswd
44         Require user admin
45     </Location>
46
47     ProxyRequests off
48     <Proxy *>
49       Order deny,allow
50       Allow from all
51     </Proxy>
52     ProxyPass         /toroid/ http://localhost:3000/
53     ProxyPassReverse  /toroid/ http://localhost:3000/
54 </VirtualHost>
55