michael@529: ##
michael@529: ## drupal-apache.conf -- Drupal Apache Custom Configuration
michael@529: ##
michael@529:
michael@529: ServerRoot @l_prefix@
michael@529: ServerAdmin root@@l_hostname@.@l_domainname@
michael@529: ServerName @l_hostname@.@l_domainname@
michael@529: ServerTokens Prod
michael@529: User @l_rusr@
michael@529: Group @l_rgrp@
michael@529: Listen 127.0.0.1:8080
michael@529:
michael@529: # runtime files
michael@529: PidFile @l_prefix@/var/drupal/run/apache.pid
michael@529: ScoreBoardFile @l_prefix@/var/drupal/run/apache.sb
michael@529: LockFile @l_prefix@/var/drupal/run/apache.lck
michael@529:
michael@529: # include apache-php
michael@529: Include @l_prefix@/etc/apache/apache.d/apache-php.conf
michael@529:
michael@529: # server behaviour
michael@529: Timeout 300
michael@529: KeepAlive on
michael@529: MaxKeepAliveRequests 100
michael@529: KeepAliveTimeout 15
michael@529: MinSpareServers 5
michael@529: MaxSpareServers 10
michael@529: StartServers 5
michael@529: MaxClients 15
michael@529: MaxRequestsPerChild 500
michael@529: HostnameLookups off
michael@529: UseCanonicalName on
michael@529:
michael@529: # access logging
michael@529: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
michael@529: LogFormat "%h %l %u %t \"%r\" %>s %b" common
michael@529: LogFormat "%{Referer}i -> %U" referer
michael@529: LogFormat "%{User-agent}i" agent
michael@529: CustomLog @l_prefix@/var/drupal/log/apache.access.log common
michael@529:
michael@529: # error logging
michael@529: LogLevel warn
michael@529: ErrorLog @l_prefix@/var/drupal/log/apache.error.log
michael@529: ServerSignature on
michael@529:
michael@529: # secure root directory
michael@529:
michael@529: Options FollowSymLinks
michael@529: AllowOverride None
michael@529:
michael@529:
michael@529: # browser specifics
michael@529: BrowserMatch "Mozilla/2" nokeepalive
michael@529: BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
michael@529: BrowserMatch "RealPlayer 4\.0" force-response-1.0
michael@529: BrowserMatch "Java/1\.0" force-response-1.0
michael@529: BrowserMatch "JDK/1\.0" force-response-1.0
michael@529:
michael@529: # SSL/TLS support
michael@529:
michael@529: SSLRandomSeed startup builtin
michael@529: SSLRandomSeed connect builtin
michael@529: SSLMutex sem
michael@529: SSLSessionCache shmcb:@l_prefix@/var/drupal/run/apache.scache(512000)
michael@529: SSLSessionCacheTimeout 300
michael@529: SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
michael@529: SetEnvIf User-Agent ".*MSIE.*" \
michael@529: nokeepalive ssl-unclean-shutdown \
michael@529: downgrade-1.0 force-response-1.0
michael@529:
michael@529: SSLOptions +StdEnvVars
michael@529:
michael@529:
michael@529: SSLOptions +StdEnvVars
michael@529:
michael@529:
michael@529:
michael@529: # configure PHP for Drupal
michael@529: AddType application/x-httpd-php .php
michael@529: php_admin_flag magic_quotes_gpc off
michael@529: php_admin_flag register_globals off
michael@529: php_admin_flag session.auto_start off
michael@529: php_admin_value session.save_handler user
michael@529: php_admin_value session.cache_limiter none
michael@529: php_admin_value error_reporting 6135
michael@529: php_admin_value memory_limit 64M
michael@529: php_admin_value mbstring.http_input pass
michael@529: php_admin_value mbstring.http_output pass
michael@529: php_admin_flag mbstring.encoding_translation off
michael@529: php_admin_value include_path .:@l_prefix@/share/drupal/includes
michael@529: php_admin_value upload_max_filesize 2M
michael@529: php_admin_value post_max_size 8M
michael@529:
michael@529: # configure Drupal
michael@529: RewriteEngine on
michael@529: RewriteRule ^/$ /drupal/ [R,L]
michael@529: Alias /drupal @l_prefix@/share/drupal
michael@529: DocumentRoot @l_prefix@/share/drupal
michael@529: DirectoryIndex index.php
michael@529: ErrorDocument 404 /index.php
michael@529: ExpiresByType text/html A1
michael@529:
michael@529: Options -Indexes +FollowSymLinks
michael@529: AllowOverride All
michael@529: Order allow,deny
michael@529: Allow from all
michael@529: RewriteEngine On
michael@529: RewriteBase /drupal
michael@529:
michael@529:
michael@529: SetOutputFilter DEFLATE
michael@529:
michael@529:
michael@529: SetOutputFilter DEFLATE
michael@529:
michael@529: