## Apache OLAT configuration as virtual host ##========================================================= ## ## $Id: httpd_vhost.conf.in,v 1.9 2004/05/07 15:01:09 mike 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_vhost.conf" ## Edit your main httpd.conf and replace with your IP address: ## ## Listen to OLAT Java host @tomcat.host.name@ on port @tomcat.host.port@ # Listen @tomcat.host.port@ ## Listen to your @apache.host@ on port @apache.host.port@. #Listen @apache.host.port@ ## OLAT Apache Host For Java ## ServerName @tomcat.host.name@ ServerAdmin @adminemail@ ErrorDocument 403 @base.dir@/403error.html ## Path to Tomcat AJP13 Connector JkMount @tomcat.contextpath@/* ajp_@tomcat.host.name@ JkMount @tomcat.contextpath@ ajp_@tomcat.host.name@ ## 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@/ ## 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 AllowOverride None deny from all AllowOverride None deny from all 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@/ ## Apache config files ErrorLog "@log.dir@/tunneling_apache_error_log.txt" CustomLog "@log.dir@/tunneling_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 AllowOverride None deny from all AllowOverride None deny from all