michael@290: ##
michael@290: ## davical-apache.conf -- DAViCal Apache Custom Configuration
michael@290: ##
michael@290:
michael@290: ServerRoot @l_prefix@
michael@290: ServerAdmin root@@l_hostname@.@l_domainname@
michael@290: ServerName @l_hostname@.@l_domainname@
michael@290: ServerTokens Prod
michael@290: User @l_rusr@
michael@290: Group @l_rgrp@
michael@290:
michael@290: Listen 127.0.0.1:8080
michael@290:
michael@290:
michael@290: Listen 127.0.0.1:8443
michael@290:
michael@290:
michael@290: # runtime files
michael@290: PidFile @l_prefix@/var/davical/run/apache.pid
michael@290: ScoreBoardFile @l_prefix@/var/davical/run/apache.sb
michael@290: LockFile @l_prefix@/var/davical/run/apache.lck
michael@290:
michael@290: # include apache-php
michael@290: Include @l_prefix@/etc/apache/apache.d/apache-php.conf
michael@290:
michael@290: # server behaviour
michael@290: Timeout 300
michael@290: KeepAlive on
michael@290: MaxKeepAliveRequests 100
michael@290: KeepAliveTimeout 15
michael@290: MinSpareServers 5
michael@290: MaxSpareServers 10
michael@290: StartServers 5
michael@290: MaxClients 15
michael@290: MaxRequestsPerChild 500
michael@290: HostnameLookups off
michael@290: UseCanonicalName on
michael@290:
michael@290: # access logging
michael@290: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
michael@290: LogFormat "%h %l %u %t \"%r\" %>s %b" common
michael@290: LogFormat "%{Referer}i -> %U" referer
michael@290: LogFormat "%{User-agent}i" agent
michael@290: CustomLog @l_prefix@/var/davical/log/apache.access.log common
michael@290:
michael@290: # error logging
michael@290: LogLevel warn
michael@290: ErrorLog @l_prefix@/var/davical/log/apache.error.log
michael@290: ServerSignature on
michael@290:
michael@290: # SSL/TLS support
michael@290:
michael@290: SSLEngine on
michael@290: SSLRandomSeed startup builtin
michael@290: SSLRandomSeed connect builtin
michael@290: SSLMutex sem
michael@290: SSLCADNRequestFile @l_prefix@/etc/x509/example-ca.crt.pem
michael@290: SSLCACertificateFile @l_prefix@/etc/x509/example-ca.crt.pem
michael@290: SSLCertificateFile @l_prefix@/etc/x509/example-server.crt.pem
michael@290: SSLCertificateKeyFile @l_prefix@/etc/x509/example-server.key.pem
michael@290: SSLSessionCache shm:@l_prefix@/var/davical/run/apache.ssl_scache(512000)
michael@290: SSLSessionCacheTimeout 300
michael@290: SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
michael@290: SetEnvIf User-Agent ".*MSIE.*" \
michael@290: nokeepalive ssl-unclean-shutdown \
michael@290: downgrade-1.0 force-response-1.0
michael@290:
michael@290:
michael@290: # secure root directory
michael@290:
michael@290: Options FollowSymLinks
michael@290: AllowOverride None
michael@290:
michael@290:
michael@290: # configure PHP
michael@290: AddType application/x-httpd-php .php
michael@290: php_admin_flag magic_quotes_gpc on
michael@290: php_admin_flag register_globals on
michael@290: php_admin_flag register_argc_argv off
michael@290:
michael@290: # configure DAViCal
michael@396: php_value include_path @l_prefix@/lib/davical/davical/inc:@l_prefix@/lib/davical/davical/htdocs:@l_prefix@/lib/davical/awl/inc
michael@396: php_value error_reporting "E_ALL&~E_NOTICE"
michael@290: php_value default_charset "utf-8"
michael@290: RewriteEngine on
michael@290: RewriteRule ^/caldav/(.*)$ /caldav.php/$1 [PT]
michael@290: DocumentRoot @l_prefix@/lib/davical/davical/htdocs
michael@290: DirectoryIndex index.php
michael@290:
michael@290:
michael@290: SSLOptions +StdEnvVars
michael@290:
michael@290: Options None
michael@290: AllowOverride None
michael@290: Order allow,deny
michael@290: Allow from all
michael@290:
michael@290: