1 # Sample configuration for running an IRSpy web-site under Apache 2.x.
3 # This is the configuration that I use on the development machine
5 # /home/indexdata/irspy
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
11 # For debian & unbuntu: please read irspy/README for a list of depending packages
15 ServerName irspy.indexdata.com
16 ServerAlias irspy2.indexdata.com irspy irspy-dev.indexdata.com
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
26 PerlSetVar MasonArgsMethod mod_perl
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
33 #PerlSetEnv IRSpyDbName localhost:8018/IR-Explain---1
35 # We need +Parent to make PerlSwitches -I work properly ... don't ask.
37 PerlSwitches -I/home/indexdata/irspy/lib
41 AuthName "IRSpy Administration"
42 AuthUserFile /home/indexdata/irspy/web/conf/htpasswd
53 # map /toroid to CGI script irspy-toroid.cgi
54 ScriptAlias /toroid/records /home/indexdata/irspy-toroid/irspy-toroid.cgi
57 #ProxyPass /toroid/ http://localhost:12367/
58 #ProxyPassReverse /toroid/ http://localhost:12367/
62 AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
63 SetOutputFilter DEFLATE