view custom-vhosts.conf @ 1262:52ecf67e9e80

Fixes an Issue when the Probe which has to be printed does not contain deskriptoren
author Dustin Demuth <dustin@intevation.de>
date Tue, 06 Dec 2016 14:03:57 +0100
parents 9aba26c41dfc
children 254a5278ac2d
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.

# Listening on port 80 is configured elsewhere in a Debian installation
#Listen 80
Listen 81
Listen 82
Listen 83
Listen 84

Define LADA_SERVER_VERSION 2.4.1-SNAPSHOT

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # Fake Shibboleth-like authentication headers
    RequestHeader set X-SHIB-user "testeins"
    # Erfasser
    RequestHeader set X-SHIB-roles "cn=mst_11010"

    # Add Proxy for Lada-server
    ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
    ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
    # 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>

<VirtualHost *:81>
    ServerAdmin webmaster@localhost
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # Fake Shibboleth-like authentication headers
    RequestHeader set X-SHIB-user "testeins"
    # Status-Erfasser
    RequestHeader set X-SHIB-roles "cn=mst_11010_status"

    # Add Proxy for Lada-server
    ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
    ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
</VirtualHost>

<VirtualHost *:82>
    ServerAdmin webmaster@localhost
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # Fake Shibboleth-like authentication headers
    RequestHeader set X-SHIB-user "testnull"
    # Status-Land
    RequestHeader set X-SHIB-roles "cn=land_11_status"

    # Add Proxy for Lada-server
    ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
    ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
</VirtualHost>

<VirtualHost *:83>
    ServerAdmin webmaster@localhost
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # Fake Shibboleth-like authentication headers
    RequestHeader set X-SHIB-user "testeins"
    # Status-Leitstelle
    RequestHeader set X-SHIB-roles "cn=lst_kiel"

    # Add Proxy for Lada-server
    ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
    ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
</VirtualHost>

<VirtualHost *:84>
    ServerAdmin webmaster@localhost
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # Fake Shibboleth-like authentication headers
    RequestHeader set X-SHIB-user "testeins"
    # Stammdatenpflege-Land
    RequestHeader set X-SHIB-roles "cn=land_06_stamm"

    # Add Proxy for Lada-server
    ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
    ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
</VirtualHost>

http://lada.wald.intevation.org