53720a3e1b15c00b64c8c094d45bf9190e72e998
[irspy-moved-to-github.git] / web / conf / apache2.0 / irspy.conf
1 # Sample configuration for running an IRSpy web-site under Apache 2.x.
2 #
3 # This is the configuration that I use on the development machine 
4 #       /usr/local/src/git/irspy
5 #
6 # This file can be included in the Apache configuration by adding a
7 # line like this to apache.conf or one of its included files:
8 #       Include /usr/local/src/git/irspy/web/conf/apache2.0/irspy.conf
9 #
10 # For debian & unbuntu: please read irspy/README for a list of depending packages
11 #
12
13 <VirtualHost *:80>
14     ServerName irspy.indexdata.com
15     ServerAlias irspy2.indexdata.com irspy
16
17     ErrorLog     /var/log/apache2/irspy-error.log
18     CustomLog    /var/log/apache2/irspy-access.log combined
19     DocumentRoot /usr/local/src/git/irspy/web/htdocs
20     <FilesMatch "\.(html|css)$">
21      SetHandler perl-script
22      PerlHandler HTML::Mason::ApacheHandler
23     </FilesMatch>
24
25     PerlSetVar MasonArgsMethod mod_perl
26
27     PerlAddVar MasonCompRoot "private => /usr/local/src/git/irspy/web/htdocs"
28     PerlSetVar MasonDataDir              /usr/local/src/git/irspy/web/data
29     PerlSetVar IRSpyLibDir               /usr/local/src/git/irspy/lib
30     PerlSetEnv PERL5LIB /usr/local/src/git/irspy/lib
31
32     #PerlSetEnv IRSpyDbName     localhost:8018/IR-Explain---1
33
34    # We need +Parent to make PerlSwitches -I work properly ... don't ask.
35    PerlOptions +Parent
36    PerlSwitches -I/usr/local/src/git/irspy/lib
37
38     <Location /admin>
39         AuthType Basic
40         AuthName "IRSpy Administration"
41         AuthUserFile /usr/local/src/git/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