# HG changeset patch # User Tom Gottfried # Date 1446660845 -3600 # Node ID c3feae5ee7140b73abf96bcd60da5807e8e73ace # Parent 0ecbcafdb32f69dfe2812c03b0836513985d6b7a Add example config for V-host/proxy and adapt docs. diff -r 0ecbcafdb32f -r c3feae5ee714 INSTALL.markdown --- a/INSTALL.markdown Wed Nov 04 14:52:55 2015 +0100 +++ b/INSTALL.markdown Wed Nov 04 19:14:05 2015 +0100 @@ -64,7 +64,7 @@ in der Datei `/etc/httpd/conf`. Die zu ladende Module sind in dieser Datei mit der Option `LoadModule` angegeben. Folgende Module werden benötigt: - * headers_module: Setzten der Header nach der Authentifizierung + * headers_module: Setzen der Header nach der Authentifizierung * proxy_module: Reverse Proxy des Apache zum Lada-Server ### Einrichtung der Anwendung @@ -102,30 +102,15 @@ ``` Dies erlaubt dem Apache grundsätzlich sich mit einem anderen Dienst zu verbinden. -Nun muss noch ein Reverse-Proxy eingerichtet werden. Dieser ist nur für -bestimmte Adressen aktiv. - -Sollte aus dem Lada-Client heraus mittels PrintApp in mapfish-print gedruckt werden, -so ist auch der zweite Proxy notwendig. -Folgende Datei sollte unter `/etc/httpd/conf.d/lada.conf` angelegt werden: -``` - - ServerAdmin webmaster@localhost - #ServerName dummy-host.example.com - ErrorLog logs/lada-error_log - CustomLog logs/lada-access_log common - - # Set multiple Proxys - ProxyPass /lada/server http://LADASERVER/lada - ProxyPassReverse /lada/server http://LADASERVER/lada - # Add Printing - ProxyPass /lada-client/lada-printer http://MAPFISH-PRINT-URL/lada_print - ProxyPassReverse /lada-client/lada-printer http://MAPFISH-PRINT-URL/lada_print - -``` -Alle Anfragen an die Adresse `/lada/service`, werden nun an den Server -weitergeleitet. +Nun muss noch ein Reverse-Proxy eingerichtet werden. Hierzu kann die Datei +`custom-vhosts.conf` unter `/etc/httpd/conf.d/lada.conf` abgelegt werden. +Die URL für den Lada-Server muss darin ggf. angepasst werden. +Sollte aus dem Lada-Client heraus mittels PrintApp in mapfish-print gedruckt werden, +so ist auch der zweite (in `custom-vhosts.conf` auskommentierte) Proxy +notwendig. +Die RequestHeader-Zeilen sind nur für ein Test-Setup ohne +Shibboleth-Authentifizierung gedacht und müssen ansonsten entfernt werden. ### Authentifizierung diff -r 0ecbcafdb32f -r c3feae5ee714 custom-vhosts.conf --- /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 +# +# for further details before you try to setup virtual hosts. +# +# You may use the command line option '-S' to verify your virtual host +# configuration. + + + 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 +