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