Mercurial > lada > lada-client
diff custom-vhosts.conf @ 953:c3feae5ee714
Add example config for V-host/proxy and adapt docs.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 04 Nov 2015 19:14:05 +0100 |
parents | |
children | 418e25969a16 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/custom-vhosts.conf Wed Nov 04 19:14:05 2015 +0100 @@ -0,0 +1,32 @@ +# Virtual Hosts +# +# Required modules: mod_log_config + +# If you want to maintain multiple domains/hostnames on your +# machine you can setup VirtualHost containers for them. Most configurations +# use only name-based virtual hosts so the server doesn't need to worry about +# IP addresses. This is indicated by the asterisks in the directives below. +# +# Please see the documentation at +# <URL:http://httpd.apache.org/docs/2.4/vhosts/> +# for further details before you try to setup virtual hosts. +# +# You may use the command line option '-S' to verify your virtual host +# configuration. + +<VirtualHost *:80> + ServerAdmin webmaster@localhost + ErrorLog logs/lada-error_log + CustomLog logs/lada-access_log common + + # Fake Shibboleth-like authentication headers + RequestHeader set X-SHIB-user "testeins" + RequestHeader set X-SHIB-roles "cn=Imis-World, cn=mst_06010, cn=mst_11010" + + # Add Proxy for Lada-server + ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/" + ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/" + # Add Proxy for printing + #ProxyPass /lada-client/lada-printer http://MAPFISH-PRINT-URL/lada_print + #ProxyPassReverse /lada-client/lada-printer http://MAPFISH-PRINT-URL/lada_print +</VirtualHost>