Replace all @...@ variables with your real stuff
<VirtualHost *:80>
ServerName @server.domainname@
ServerAdmin @server.adminmail@
<IfModule mod_jk.c>
JkMount /openolat/* worker1
JkMount /openolat worker1
JkUnMount /openolat/raw/* worker1
</IfModule>
## Redirect everything unspecific to the OpenOLAT application
RedirectMatch permanent ^/$ /openolat/dmz/
RedirectMatch permanent ^/openolat$ /openolat/dmz/
## Main server config
DocumentRoot "@installation.dir@/htdocs"
AccessFileName .htaccess
## Apache config files
ErrorLog "@installation.dir@/logs/apache_error.log"
CustomLog "@installation.dir@/logs/apache_access.log" combined
## Security settings
<Directory "@installation.dir@/htdocs">
Options Indexes IncludesNoExec
AllowOverride None
Order deny,allow
Allow from all
</Directory>
## Static raw content
<Directory "@base.dir@/webapp/static">
Options Indexes IncludesNoExec FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
## mapp all raw requests to the static dir. First the ones with a
## version ID, then the ones with the _noversion_ tag
## Note that in the following pattern the [0-9a-f:]* matches the value of the build.identifier property
AliasMatch ^/openolat/raw/[0-9a-f:]*/(.*) @base.dir@/webapp/static/$1
Alias /openolat/raw/_noversion_ @base.dir@/webapp/static
AliasMatch /openolat/raw/msg/.*/(.*) @installation.dir@/htdocs/msg/$1
## Special OpenOLAT error pages
ErrorDocument 403 /403error.html
ErrorDocument 404 /404error.html
ErrorDocument 500 /500error.html
ErrorDocument 503 /500error.html
## Webapp icon file
AddType text/html .html .htm
AddType image/x-icon .ico
## required modules: headers, filter and deflate
<IfModule mod_filter.c>
<IfModule mod_deflate.c>
<IfModule mod_headers.c>
<Location />
# Insert filter
SetOutputFilter DEFLATE
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|pngi|pdf|swf|fla|zip|mp4|flv|f4v|aac|m4v|m4a)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</Location>
</IfModule>
</IfModule>
</IfModule>
</VirtualHost>