## $Id: httpd.conf.in,v 1.15 2003/05/07 10:55:57 gnaegi Exp $
##
## Include this file in your standard httpd.conf. To do this put the following line
## at the very bottom of your local httpd.conf:
##
## Include "@base.dir@/conf/httpd.conf"
##
##
##
## Listen to your @apache.host@ and your 127.0.0.1 interface on port @apache.host.port@
## Most people install it on port 80, and usually in the default apache configuration there
## is already a Listen on port 80. If you do not have port 80, uncomment the following line
#Listen @apache.host.port@
##
## Tell apache that all requests on port @apache.host.port@ for any ip address is a
## virtual host request
##
NameVirtualHost *:@apache.host.port@
## Tomcat JK Connector configuration for Apache
##=========================================================
##
## These settings have to match @base.dir@/conf/workers.properties
##
JkWorkersFile "@base.dir@/conf/workers.properties"
JkRequestLogFormat "%w %V %T %r"
JkLogFile "@log.dir@/mod_jk.log.txt"
JkLogLevel info
JkOptions +ForwardURICompatUnparsed
JkMount @tomcat.contextpath@/* worker1
JkMount @tomcat.contextpath@ worker1
AllowOverride None
deny from all
## Apache OLAT configuration as virtual host
##=========================================================
##
## These settings have to match @base.dir@/conf/workers.properties
##
## Virtual host setting for any ip address on port @apache.host.port@ for server @apache.host.name@
## See http://httpd.apache.org/docs-2.0/vhosts/name-based.html
##
ServerName @apache.host.name@
ServerAdmin @adminemail@
ErrorDocument 403 @base.dir@/403error.html
## Redirect the following URL's that might get to this apache
## installation
RedirectMatch permanent ^/zentrum.* http://www.olat-zentrum.unizh.ch/
RedirectMatch permanent ^/info.* http://www.olat.org/
RedirectMatch permanent ^/$ @tomcat.contextpath@/
RedirectMatch permanent ^/index.php3 @tomcat.contextpath@/
RedirectMatch permanent ^/kurs/* @tomcat.contextpath@/
RedirectMatch permanent ^/rebuild/* @tomcat.contextpath@/
## Apache config files
ErrorLog "@log.dir@/apache_error_log.txt"
CustomLog "@log.dir@/apache_access_log.txt" combined
## as soon as php_admin_value include_path is set, each html-file
## which has the execute-bit set, is parsed by php. We do not know
## why this happens but need to prevent this. For this reasen,
## we add the heandler server-parsed for html-files
AddType text/html .html .htm
AddType image/x-icon .ico
## Main server config
DocumentRoot "@base.dir@/htdocs"
AccessFileName .htaccess
## OLAT monitoring alias
Alias /monitoring "@userdata.dir@/monitoring"
Alias /webalizer "@userdata.dir@/webalizer"
## Security settings
Options Indexes IncludesNoExec FollowSymLinks
AllowOverride All
Options -Indexes IncludesNoExec FollowSymLinks
AllowOverride None
Options -Indexes IncludesNoExec FollowSymLinks
AllowOverride None