### Section 1: Global Environment
# boring defaults
ServerType standalone
ServerRoot "/var/www"
PidFile logs/httpd.pid
ScoreBoardFile logs/apache_runtime_status
Timeout 300
MaxKeepAliveRequests 100
KeepAliveTimeout 1
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
# better avoid problems with redirection magic
KeepAlive Off
# prevent caching
LoadModule headers_module /usr/lib/apache/modules/mod_headers.so
Header set Cache-Control "no-cache, no-store, private"
Header set Pragma "no-cache"
### Section 2: 'Main' server configuration
# the interesting stuff
DocumentRoot "/var/www/docs-intern"
DirectoryIndex index.html index.cgi
AddHandler cgi-script .cgi
ErrorDocument 404 /index.cgi
Options ExecCGI
# boring defaults
Port 80
Listen 80
Listen 443
User www
Group www
UserDir disabled
TypesConfig conf/mime.types
DefaultType text/plain
ErrorLog logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog logs/access_log common
### Section 3: Virtual Hosts
DocumentRoot /var/www/docs-extern
ServerName ig-airlines.rave.org
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
SSLSessionCache dbm:logs/ssl_scache
SSLSessionCacheTimeout 300
SSLMutex sem
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLRandomSeed startup file:/dev/arandom 512
SSLLog logs/ssl_engine_log
SSLLogLevel info
DocumentRoot /var/www/docs-intern
SSLEngine on
SSLCertificateFile /etc/ssl/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key
CustomLog logs/access_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
DocumentRoot /var/www/docs-extern
SSLEngine on
SSLCertificateFile /etc/ssl/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key
CustomLog logs/access_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"