# httpd-2.0.59 + mod_perl for secure.alliancemca.com ServerRoot /opt/apache LockFile logs/accept.lock PidFile logs/httpd.pid Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 30 LoadModule perl_module modules/mod_perl.so ### Section 2: 'Main' server configuration User safefax Group users ServerAdmin migmir@alliancemca.com ServerName secure.alliancemca.com ServerTokens Prod ServerSignature Email UseCanonicalName Off #DirectoryIndex index.cgi TypesConfig conf/mime.types DefaultType text/html HostnameLookups Off # Possible values include: debug, info, notice, warn, error, crit, alert, emerg. ErrorLog logs/error_log LogLevel debug LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog logs/access_log combined Listen 80 Listen 443 SSLRandomSeed startup builtin SSLRandomSeed connect builtin AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl SSLPassPhraseDialog builtin SSLSessionCache dbm:/opt/apache/logs/ssl_scache SSLSessionCacheTimeout 300 SSLMutex file:/opt/apache/logs/ssl_mutex # VIRTUALHOST FOR SECURE.ALLIANCEMCA.COM # ServerName secure.alliancemca.com ServerAdmin admin@alliancemca.com DocumentRoot "/opt/apache/cgi/" DirectoryIndex index.html index.cgi index.pl ErrorLog /opt/apache/logs/error_log TransferLog /opt/apache/logs/access_log PerlRequire conf/startup.pl PerlModule Apache2::Reload # Reload les modules lorsque le fichier a ÈtÈ touchÈ. PerlInitHandler Apache2::Reload PerlSetVar ReloadAll Off PerlSetVar ReloadDebug Off PerlSetVar ReloadModules "ApachePerl::*" #PerlSetVar ReloadModules "ApachePerl::CgiAccess" #PerlSetVar ReloadModules "ApachePerl::IndexCgi" #PerlSetVar ReloadModules "ApachePerl::PnotesMenu" PerlSetVar ReloadModules "Crystal::*" #LoadModule disk_cache_module modules/mod_disk_cache.so # #CacheRoot /var/cache/apache #CacheSize 25600 #CacheEnable disk /images/ #CacheEnable disk /js/ #CacheEnable disk /css/ #CacheEnable disk /svg/ #CacheDirLevels 4 #CacheDirLength 3 # #mod_mem_cache.c #CacheEnable mem / #CacheEnable mem /images/ #CacheEnable mem /js/ #CacheEnable mem /css/ #CacheEnable mem /svg/ #CacheEnable mem /favicon.ico #CacheEnable mem /icons/ CacheLastModifiedFactor 0.05 MCacheSize 800000 CacheMaxExpire 86400 MCacheMaxObjectCount 12900 MCacheMinObjectSize 1 MCacheMaxObjectSize 128000000 #mod_cache.c PerlTypeHandler ApachePerl::Test ProxyPass /images/ http://www.alliancemca.com/images/ ProxyPassReverse /images/ http://www.alliancemca.com/images/ ProxyPass /css/ http://www.alliancemca.com/css/ ProxyPassReverse /css/ http://www.alliancemca.com/css/ ProxyPass /svg/ http://www.alliancemca.com/svg/ ProxyPassReverse /svg/ http://www.alliancemca.com/svg/ ProxyPass /icons/ http://www.alliancemca.com/icons/ ProxyPassReverse /icons/ http://www.alliancemca.com/icons/ ProxyPass /js/ http://www.alliancemca.com/js/ ProxyPassReverse /js/ http://www.alliancemca.com/js/ ProxyRequests Off #DeAuthUriRegex "^(/css/|/images/|/js/|/icons/|/favicon.ico)" PerlSetVar DeAuthUris "^(/css/|/images/|/svg/|/js/|/icons/|/favicon.ico)" PerlPostReadRequestHandler ApachePerl::DeAuth # local FS Alias /favicon.ico "/opt/apache/htdocs/css/favicon.ico" Options -Multiviews -Indexes -ExecCGI -Includes AllowOverride None Order Allow,Deny Allow from all Alias /camembert_serveur.svg "/opt/apache/htdocs/SVG/camembert_serveur.svg" Options -Multiviews -Indexes -ExecCGI -Includes AllowOverride None Order Allow,Deny Allow from all Alias / "/opt/apache/cgi/" DirectoryIndex index.cgi SetHandler perl-script AllowOverride None Options +ExecCGI SSLEngine on SSLProtocol all SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL:RC4+MD5 SSLCertificateFile /opt/apache/conf/ssl/secure.alliancemca.com.crt SSLCertificateKeyFile /opt/apache/conf/ssl/secure.alliancemca.com.key SSLCACertificateFile /opt/apache/conf/ssl/secure.alliancemca.com.ca-bundle SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 CustomLog /opt/apache/logs/ssl_request_log \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"