X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=web%2Fconf%2Fapache2.0%2Firspy.conf;h=e7355867a10eef31eaa34270719eced114a4c3de;hp=10d46222aa5179f7311e4836481b902b82d47070;hb=ad730d577f4c1146ed3e2d00d84cde45adc956b5;hpb=ce6ecc13c798b8a7ad71a8f35c1cf4adaab3f856 diff --git a/web/conf/apache2.0/irspy.conf b/web/conf/apache2.0/irspy.conf index 10d4622..e735586 100644 --- a/web/conf/apache2.0/irspy.conf +++ b/web/conf/apache2.0/irspy.conf @@ -1,31 +1,29 @@ -# $Id: cfspy.conf,v 1.4 2009-04-16 18:31:20 wosch Exp $ -# # Sample configuration for running an IRSpy web-site under Apache 2.x. # -# This is the configuration that I use on the development machine us2 -# /home/wosch/indexdata/irspy +# This is the configuration that I use on the development machine +# +# /home/indexdata/irspy # # This file can be included in the Apache configuration by adding a # line like this to apache.conf or one of its included files: -# Include /home/wosch/indexdata/irspy/web/conf/apache2.0/cfspy.conf +# Include /home/indexdata/irspy/web/conf/apache2.0/irspy.conf # -# When running on Ubuntu (and probably Debian), don't forget to -# install libapache-request-perl as well as libhtml-mason-perl, -# otherwise Mason will fail mysteriously. +# For debian & unbuntu: please read irspy/README for a list of depending packages # -# For Apache 2.x -# sudo apt-get install libxml-libxslt-perl -# sudo apt-get install libhtml-mason-perl -# sudo apt-get install libapache2-request-perl -#NameVirtualHost 192.168.1.75 +# +# an irspy toroid process takes up to 90MB for each request +# 90*32 => 3GB RAM +# +MaxClients 32 - ServerName cfspy.indexdata.com + ServerName irspy.indexdata.com + ServerAlias irspy2.indexdata.com irspy irspy-dev.indexdata.com - ErrorLog /var/log/apache2/cfspy-error.log - CustomLog /var/log/apache2/cfspy-access.log combined - DocumentRoot /home/wosch/indexdata/irspy/web/htdocs + ErrorLog /var/log/apache2/irspy-error.log + CustomLog /var/log/apache2/irspy-access.log combined + DocumentRoot /home/indexdata/irspy/web/htdocs SetHandler perl-script PerlHandler HTML::Mason::ApacheHandler @@ -33,20 +31,43 @@ PerlSetVar MasonArgsMethod mod_perl - PerlAddVar MasonCompRoot "private => /home/wosch/indexdata/irspy/web/htdocs" - PerlSetVar MasonDataDir /home/wosch/indexdata/irspy/web/data - PerlSetVar IRSpyLibDir /home/wosch/indexdata/irspy/lib - PerlSetEnv PERL5LIB /home/wosch/indexdata/irspy/lib + PerlAddVar MasonCompRoot "private => /home/indexdata/irspy/web/htdocs" + PerlSetVar MasonDataDir /home/indexdata/irspy/web/data + PerlSetVar IRSpyLibDir /home/indexdata/irspy/lib + PerlSetEnv PERL5LIB /home/indexdata/irspy/lib + + #PerlSetEnv IRSpyDbName localhost:8018/IR-Explain---1 # We need +Parent to make PerlSwitches -I work properly ... don't ask. PerlOptions +Parent - PerlSwitches -I/home/wosch/indexdata/irspy/lib + PerlSwitches -I/home/indexdata/irspy/lib AuthType Basic AuthName "IRSpy Administration" - AuthUserFile /home/wosch/indexdata/irspy/web/conf/htpasswd + AuthUserFile /home/indexdata/irspy/web/conf/htpasswd Require user admin + + ProxyRequests off + + Order deny,allow + Allow from all + + + + # map /toroid to CGI script irspy-toroid.cgi + ScriptAlias /toroid/records /home/indexdata/irspy-toroid/irspy-toroid.cgi + + + # legacy ruby daemon + #ProxyPass /toroid/ http://localhost:12367/ + #ProxyPassReverse /toroid/ http://localhost:12367/ + + # compress output + + AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml + SetOutputFilter DEFLATE +