Mon, 28 Jan 2013 17:37:18 +0100
Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.
1 ##
2 ## davical-apache.conf -- DAViCal Apache Custom Configuration
3 ##
5 ServerRoot @l_prefix@
6 ServerAdmin root@@l_hostname@.@l_domainname@
7 ServerName @l_hostname@.@l_domainname@
8 ServerTokens Prod
9 User @l_rusr@
10 Group @l_rgrp@
11 <IfDefine !SSL>
12 Listen 127.0.0.1:8080
13 </IfDefine>
14 <IfDefine SSL>
15 Listen 127.0.0.1:8443
16 </IfDefine>
18 # runtime files
19 PidFile @l_prefix@/var/davical/run/apache.pid
20 ScoreBoardFile @l_prefix@/var/davical/run/apache.sb
21 LockFile @l_prefix@/var/davical/run/apache.lck
23 # include apache-php
24 Include @l_prefix@/etc/apache/apache.d/apache-php.conf
26 # server behaviour
27 Timeout 300
28 KeepAlive on
29 MaxKeepAliveRequests 100
30 KeepAliveTimeout 15
31 MinSpareServers 5
32 MaxSpareServers 10
33 StartServers 5
34 MaxClients 15
35 MaxRequestsPerChild 500
36 HostnameLookups off
37 UseCanonicalName on
39 # access logging
40 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
41 LogFormat "%h %l %u %t \"%r\" %>s %b" common
42 LogFormat "%{Referer}i -> %U" referer
43 LogFormat "%{User-agent}i" agent
44 CustomLog @l_prefix@/var/davical/log/apache.access.log common
46 # error logging
47 LogLevel warn
48 ErrorLog @l_prefix@/var/davical/log/apache.error.log
49 ServerSignature on
51 # SSL/TLS support
52 <IfDefine SSL>
53 SSLEngine on
54 SSLRandomSeed startup builtin
55 SSLRandomSeed connect builtin
56 SSLMutex sem
57 SSLCADNRequestFile @l_prefix@/etc/x509/example-ca.crt.pem
58 SSLCACertificateFile @l_prefix@/etc/x509/example-ca.crt.pem
59 SSLCertificateFile @l_prefix@/etc/x509/example-server.crt.pem
60 SSLCertificateKeyFile @l_prefix@/etc/x509/example-server.key.pem
61 SSLSessionCache shm:@l_prefix@/var/davical/run/apache.ssl_scache(512000)
62 SSLSessionCacheTimeout 300
63 SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
64 SetEnvIf User-Agent ".*MSIE.*" \
65 nokeepalive ssl-unclean-shutdown \
66 downgrade-1.0 force-response-1.0
67 </IfDefine>
69 # secure root directory
70 <Directory />
71 Options FollowSymLinks
72 AllowOverride None
73 </Directory>
75 # configure PHP
76 AddType application/x-httpd-php .php
77 php_admin_flag magic_quotes_gpc on
78 php_admin_flag register_globals on
79 php_admin_flag register_argc_argv off
81 # configure DAViCal
82 php_value include_path @l_prefix@/lib/davical/davical/inc:@l_prefix@/lib/davical/davical/htdocs:@l_prefix@/lib/davical/awl/inc
83 php_value error_reporting "E_ALL&~E_NOTICE"
84 php_value display_errors "1"
85 php_value default_charset "utf-8"
86 RewriteEngine on
87 RewriteRule ^/caldav/(.*)$ /caldav.php/$1 [PT]
88 DirectoryIndex index.php
89 DocumentRoot @l_prefix@/lib/davical/davical/htdocs
90 <Directory @l_prefix@/lib/davical/davical/htdocs>
91 <IfDefine SSL>
92 SSLOptions +StdEnvVars
93 </IfDefine>
94 Options None
95 AllowOverride None
96 Order allow,deny
97 Allow from all
98 </Directory>