1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/davical/davical-apache.conf Mon Nov 22 12:39:58 2010 +0100 1.3 @@ -0,0 +1,98 @@ 1.4 +## 1.5 +## davical-apache.conf -- DAViCal 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 +<IfDefine !SSL> 1.15 +Listen 127.0.0.1:8080 1.16 +</IfDefine> 1.17 +<IfDefine SSL> 1.18 +Listen 127.0.0.1:8443 1.19 +</IfDefine> 1.20 + 1.21 +# runtime files 1.22 +PidFile @l_prefix@/var/davical/run/apache.pid 1.23 +ScoreBoardFile @l_prefix@/var/davical/run/apache.sb 1.24 +LockFile @l_prefix@/var/davical/run/apache.lck 1.25 + 1.26 +# include apache-php 1.27 +Include @l_prefix@/etc/apache/apache.d/apache-php.conf 1.28 + 1.29 +# server behaviour 1.30 +Timeout 300 1.31 +KeepAlive on 1.32 +MaxKeepAliveRequests 100 1.33 +KeepAliveTimeout 15 1.34 +MinSpareServers 5 1.35 +MaxSpareServers 10 1.36 +StartServers 5 1.37 +MaxClients 15 1.38 +MaxRequestsPerChild 500 1.39 +HostnameLookups off 1.40 +UseCanonicalName on 1.41 + 1.42 +# access logging 1.43 +LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined 1.44 +LogFormat "%h %l %u %t \"%r\" %>s %b" common 1.45 +LogFormat "%{Referer}i -> %U" referer 1.46 +LogFormat "%{User-agent}i" agent 1.47 +CustomLog @l_prefix@/var/davical/log/apache.access.log common 1.48 + 1.49 +# error logging 1.50 +LogLevel warn 1.51 +ErrorLog @l_prefix@/var/davical/log/apache.error.log 1.52 +ServerSignature on 1.53 + 1.54 +# SSL/TLS support 1.55 +<IfDefine SSL> 1.56 +SSLEngine on 1.57 +SSLRandomSeed startup builtin 1.58 +SSLRandomSeed connect builtin 1.59 +SSLMutex sem 1.60 +SSLCADNRequestFile @l_prefix@/etc/x509/example-ca.crt.pem 1.61 +SSLCACertificateFile @l_prefix@/etc/x509/example-ca.crt.pem 1.62 +SSLCertificateFile @l_prefix@/etc/x509/example-server.crt.pem 1.63 +SSLCertificateKeyFile @l_prefix@/etc/x509/example-server.key.pem 1.64 +SSLSessionCache shm:@l_prefix@/var/davical/run/apache.ssl_scache(512000) 1.65 +SSLSessionCacheTimeout 300 1.66 +SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL 1.67 +SetEnvIf User-Agent ".*MSIE.*" \ 1.68 + nokeepalive ssl-unclean-shutdown \ 1.69 + downgrade-1.0 force-response-1.0 1.70 +</IfDefine> 1.71 + 1.72 +# secure root directory 1.73 +<Directory /> 1.74 + Options FollowSymLinks 1.75 + AllowOverride None 1.76 +</Directory> 1.77 + 1.78 +# configure PHP 1.79 +AddType application/x-httpd-php .php 1.80 +php_admin_flag magic_quotes_gpc on 1.81 +php_admin_flag register_globals on 1.82 +php_admin_flag register_argc_argv off 1.83 + 1.84 +# configure DAViCal 1.85 +php_value include_path @l_prefix@/lib/davical/davical/inc:@l_prefix@/lib/davical/awl/inc 1.86 +php_value error_reporting "E_ALL & ~E_NOTICE" 1.87 +php_value default_charset "utf-8" 1.88 +RewriteEngine on 1.89 +RewriteRule ^/caldav/(.*)$ /caldav.php/$1 [PT] 1.90 +DocumentRoot @l_prefix@/lib/davical/davical/htdocs 1.91 +DirectoryIndex index.php 1.92 +<Directory @l_prefix@/lib/davical/davical/htdocs> 1.93 + <IfDefine SSL> 1.94 + SSLOptions +StdEnvVars 1.95 + </IfDefine> 1.96 + Options None 1.97 + AllowOverride None 1.98 + Order allow,deny 1.99 + Allow from all 1.100 +</Directory> 1.101 +