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 # an irspy toroid process takes up to 90MB for each request
21 ServerName irspy.indexdata.com
22 ServerAlias irspy2.indexdata.com irspy irspy-dev.indexdata.com irspy-dev
24 ErrorLog /var/log/apache2/irspy-error.log
25 CustomLog /var/log/apache2/irspy-access.log combined
26 DocumentRoot /home/indexdata/irspy/web/htdocs
27 <FilesMatch "\.(html|css)$">
28 SetHandler perl-script
29 PerlHandler HTML::Mason::ApacheHandler
32 PerlSetVar MasonArgsMethod mod_perl
34 PerlAddVar MasonCompRoot "private => /home/indexdata/irspy/web/htdocs"
35 PerlSetVar MasonDataDir /home/indexdata/irspy/web/data
36 PerlSetVar IRSpyLibDir /home/indexdata/irspy/lib
37 PerlSetEnv PERL5LIB /home/indexdata/irspy/lib
39 #PerlSetEnv IRSpyDbName localhost:8018/IR-Explain---1
41 # We need +Parent to make PerlSwitches -I work properly ... don't ask.
43 PerlSwitches -I/home/indexdata/irspy/lib
47 AuthName "IRSpy Administration"
48 AuthUserFile /home/indexdata/irspy/web/conf/htpasswd
49 Require user admin irspy
59 # map /toroid to CGI script irspy-toroid.cgi
60 ScriptAlias /toroid/records /home/indexdata/irspy-toroid/irspy-toroid.cgi
64 #ProxyPass /toroid/ http://localhost:12367/
65 #ProxyPassReverse /toroid/ http://localhost:12367/
69 AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
70 SetOutputFilter DEFLATE