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