1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/roundcube/roundcube-apache.conf Thu Oct 18 12:53:06 2012 +0200 1.3 @@ -0,0 +1,116 @@ 1.4 +## 1.5 +## roundcube-apache.conf -- Roundcube Apache Custom Configuration 1.6 +## 1.7 + 1.8 +ServerRoot @l_prefix@ 1.9 +ServerAdmin root@@l_hostname@.@l_domainname@ 1.10 +ServerName @l_hostname@.@l_domainname@ 1.11 +ServerTokens Prod 1.12 +User @l_rusr@ 1.13 +Group @l_rgrp@ 1.14 +Listen 127.0.0.1:8080 1.15 + 1.16 +# runtime files 1.17 +PidFile @l_prefix@/var/roundcube/run/apache.pid 1.18 +ScoreBoardFile @l_prefix@/var/roundcube/run/apache.sb 1.19 +LockFile @l_prefix@/var/roundcube/run/apache.lck 1.20 + 1.21 +# include apache-php 1.22 +Include @l_prefix@/etc/apache/apache.d/apache-php.conf 1.23 + 1.24 +# server behaviour 1.25 +Timeout 300 1.26 +KeepAlive on 1.27 +MaxKeepAliveRequests 100 1.28 +KeepAliveTimeout 15 1.29 +MinSpareServers 5 1.30 +MaxSpareServers 10 1.31 +StartServers 5 1.32 +MaxClients 15 1.33 +MaxRequestsPerChild 500 1.34 +HostnameLookups off 1.35 +UseCanonicalName on 1.36 + 1.37 +# access logging 1.38 +LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined 1.39 +LogFormat "%h %l %u %t \"%r\" %>s %b" common 1.40 +LogFormat "%{Referer}i -> %U" referer 1.41 +LogFormat "%{User-agent}i" agent 1.42 +CustomLog @l_prefix@/var/roundcube/log/apache.access.log common 1.43 + 1.44 +# error logging 1.45 +LogLevel warn 1.46 +ErrorLog @l_prefix@/var/roundcube/log/apache.error.log 1.47 +ServerSignature on 1.48 + 1.49 +# secure root directory 1.50 +<Directory /> 1.51 + Options FollowSymLinks 1.52 + AllowOverride None 1.53 +</Directory> 1.54 + 1.55 +# browser specifics 1.56 +BrowserMatch "Mozilla/2" nokeepalive 1.57 +BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 1.58 +BrowserMatch "RealPlayer 4\.0" force-response-1.0 1.59 +BrowserMatch "Java/1\.0" force-response-1.0 1.60 +BrowserMatch "JDK/1\.0" force-response-1.0 1.61 + 1.62 +# SSL/TLS support 1.63 +<IfModule ssl_module> 1.64 + SSLRandomSeed startup builtin 1.65 + SSLRandomSeed connect builtin 1.66 + SSLMutex sem 1.67 + SSLSessionCache shmcb:@l_prefix@/var/roundcube/run/apache.scache(512000) 1.68 + SSLSessionCacheTimeout 300 1.69 + SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL 1.70 + SetEnvIf User-Agent ".*MSIE.*" \ 1.71 + nokeepalive ssl-unclean-shutdown \ 1.72 + downgrade-1.0 force-response-1.0 1.73 + <Files ~ "\.(cgi|shtml|phtml|php?)$"> 1.74 + SSLOptions +StdEnvVars 1.75 + </Files> 1.76 + <Directory "@l_prefix@/cgi"> 1.77 + SSLOptions +StdEnvVars 1.78 + </Directory> 1.79 +</IfModule> 1.80 + 1.81 +# configure PHP for Roundcube 1.82 +AddType application/x-httpd-php .php 1.83 +php_admin_flag magic_quotes_gpc off 1.84 +php_admin_flag register_globals off 1.85 +php_admin_flag session.auto_start off 1.86 +php_admin_value session.save_handler user 1.87 +php_admin_value session.cache_limiter none 1.88 +php_admin_value error_reporting 6135 1.89 +php_admin_value memory_limit 64M 1.90 +php_admin_value mbstring.http_input pass 1.91 +php_admin_value mbstring.http_output pass 1.92 +php_admin_flag mbstring.encoding_translation off 1.93 +php_admin_value include_path .:@l_prefix@/share/roundcube/includes 1.94 +php_admin_value upload_max_filesize 2M 1.95 +php_admin_value post_max_size 8M 1.96 + 1.97 +# configure Roundcube 1.98 +RewriteEngine on 1.99 +RewriteRule ^/$ /roundcube/ [R,L] 1.100 +Alias /roundcube @l_prefix@/share/roundcube 1.101 +DocumentRoot @l_prefix@/share/roundcube 1.102 +DirectoryIndex index.php 1.103 +ErrorDocument 404 /index.php 1.104 +ExpiresByType text/html A1 1.105 +<Directory @l_prefix@/share/roundcube> 1.106 + Options -Indexes +FollowSymLinks 1.107 + AllowOverride All 1.108 + Order allow,deny 1.109 + Allow from all 1.110 + RewriteEngine On 1.111 + RewriteBase /roundcube 1.112 +</Directory> 1.113 +<Location /roundcube/sites/default/files/js> 1.114 + SetOutputFilter DEFLATE 1.115 +</Location> 1.116 +<Location /roundcube/sites/default/files/css> 1.117 + SetOutputFilter DEFLATE 1.118 +</Location> 1.119 +