# Load DSOs

LoadModule 	 perl_module libexec/apache/libperl.so
AddModule 	 mod_perl.c

LoadModule 	 config_log_module libexec/apache/mod_log_config.so
AddModule 	 mod_log_config.c

LoadModule 	 mime_module libexec/apache/mod_mime.so
AddModule 	 mod_mime.c

LoadModule 	 alias_module libexec/apache/mod_alias.so
AddModule 	 mod_alias.c



## httpd.conf -- Bricolage Apache configuration file.
##
## VERSION: $LastChangedRevision$
## $LastChangedDate$

################################################################################
# These are the basic, general settings to get going.
#
# MAKE SURE that if you run on non-standard ports that 
# you edit below:
#	Listen 80	(one place)
#	Listen 443	(two places)
################################################################################
ServerType           standalone
ServerName           jail-47
ServerRoot           /usr/local
ServerAdmin          root@localhost
ServerSignature      Email
PidFile              /usr/local/bricolage/log/httpd.pid
DocumentRoot         /usr/local/bricolage/comp
Listen               80
User                 www
Group                www
KeepAlive            Off
MaxKeepAliveRequests 100
KeepAliveTimeout     15
MinSpareServers      2
MaxSpareServers      6
StartServers         2
MaxClients           150
MaxRequestsPerChild  0
ErrorLog             /usr/local/bricolage/log/error_log
LogLevel             info
LogFormat            "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\" \"%v:%p\"" combined
CustomLog            /usr/local/bricolage/log/access_log combined
TypesConfig          /usr/local/etc/apache/mime.types
UseCanonicalName     On
HostNameLookups      Off
Timeout              30

################################################################################
# Use this section if SSL_ENABLE is on in bricolage.conf.
################################################################################
<ifModule mod_ssl.c>
    Listen 443
    # Enabled on a per virtual host basis
    SSLEngine off
    SSLPassPhraseDialog    builtin
    SSLSessionCache        dbm:/usr/local/apache/logs/ssl_scache
    SSLSessionCacheTimeout 300
    SSLMutex               file:/usr/local/apache/logs/ssl_mutex
    SSLLog                 /usr/local/apache/logs/ssl_engine_log
    SSLLogLevel            info
    SSLRandomSeed          startup builtin
    SSLRandomSeed          connect builtin
    SSLCipherSuite         ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
</IfModule>
<IfModule apache_ssl.c>
    # Platform dependent, but shown for Linux
#   SSLRandomFile /dev/random/1024
#   SSLRandomFilePerConnection /dev/random 1024
    SSLRandomFile /dev/urandom 1024
    SSLRandomFilePerConnection /dev/urandom 1024
    Listen 443
    # Enabled on a per virtual host basis
    SSLDisable
    SSLCacheServerPath /usr/local/apache/bin/gcache
    SSLCacheServerPort logs/gcache_port
    SSLCacheServerRunDir /tmp
    SSLSessionCacheTimeout 3600
#    SSLRequired Ciphers RC4-MD5:RC4-SHA:IDEA-CBC-MD5:DES-CBC3-SHA
</IfModule>

################################################################################
# This is where Bricolage actually gets configured.
################################################################################
PerlPassEnv BRICOLAGE_ROOT
PerlModule Bric::App::ApacheConfig
