view custom-vhosts.conf @ 954:1856b6b3b8d4

Add dockerised setup with respective Apache config. custom-httpd.conf is a slightly modified version of the original from the httpd:2.4 docker image and might be cleaned up.
author Tom Gottfried <tom@intevation.de>
date Wed, 04 Nov 2015 19:44:44 +0100
parents c3feae5ee714
children 418e25969a16
line wrap: on
line source
# 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>

http://lada.wald.intevation.org