# Copyright (c) 2001-2008 bivio Software, Inc. All rights reserved. # $Id: httpd.conf,v 1.5 2008/10/14 23:44:26 nagler Exp $ # # Sample httpd.conf for bOP Pet Shop. See also ../petshop.bconf. # # This configuration only works in single server (-X): # # httpd -X -d $PWD -f $PWD/httpd.conf # ResourceConfig /dev/null AccessConfig /dev/null Listen 8888 LoadModule env_module /usr/lib/apache/mod_env.so LoadModule alias_module /usr/lib/apache/mod_alias.so LoadModule mime_module /usr/lib/apache/mod_mime.so LoadModule config_log_module /usr/lib/apache/mod_log_config.so LoadModule rewrite_module /usr/lib/apache/mod_rewrite.so LoadModule setenvif_module /usr/lib/apache/mod_setenvif.so LoadModule perl_module /usr/lib/apache/libperl.so PerlWarn on # Can't be on and use PERLLIB. PerlFreshRestart off # Runs relative to current directory. PerlSetEnv BCONF ../petshop.bconf # Runs relative to current directory. use lib qw(../lib); # This isn't absolutely necessary, but we were unable to set these # values at one point from inside Bivio::Ext::DBI without setting # them here. PassEnv ORACLE_HOME PassEnv ORACLE_SID PassEnv http_proxy PassEnv PERLLIB PerlPassEnv ORACLE_HOME PerlPassEnv ORACLE_SID PerlPassEnv http_proxy PerlPassEnv PERLLIB #PerlModule Bivio::Agent::HTTP::Dispatcher use Bivio::Agent::HTTP::Dispatcher; Timeout 60 KeepAlive off MinSpareServers 1 MaxSpareServers 4 StartServers 1 MaxClients 4 MaxRequestsPerChild 100000 LimitRequestBody 4194304 # We set this from the command line. You can set it here, too. # ServerRoot is set from the command line DocumentRoot files/petshop/plain PidFile httpd.pid ErrorLog |cat # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel debug LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined CustomLog |cat combined TypesConfig /etc/mime.types DefaultType text/plain LockFile httpd.lock AllowOverride None Options FollowSymLinks # Everything goes through the PerlHandler SetHandler perl-script PerlHandler Bivio::Agent::HTTP::Dispatcher # Standard browser workarounds BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0