comparison custom-vhosts.conf @ 1018:418e25969a16

Serve roles on different ports for easier testing.
author Tom Gottfried <tom@intevation.de>
date Thu, 04 Feb 2016 14:16:43 +0100
parents c3feae5ee714
children 6a176e9ca890
comparison
equal deleted inserted replaced
1017:d8e74bd89d6b 1018:418e25969a16
11 # <URL:http://httpd.apache.org/docs/2.4/vhosts/> 11 # <URL:http://httpd.apache.org/docs/2.4/vhosts/>
12 # for further details before you try to setup virtual hosts. 12 # for further details before you try to setup virtual hosts.
13 # 13 #
14 # You may use the command line option '-S' to verify your virtual host 14 # You may use the command line option '-S' to verify your virtual host
15 # configuration. 15 # configuration.
16 Listen 80
17 Listen 81
18 Listen 82
19 Listen 83
16 20
17 <VirtualHost *:80> 21 <VirtualHost *:80>
18 ServerAdmin webmaster@localhost 22 ServerAdmin webmaster@localhost
19 ErrorLog logs/lada-error_log 23 ErrorLog logs/lada-error_log
20 CustomLog logs/lada-access_log common 24 CustomLog logs/lada-access_log common
21 25
22 # Fake Shibboleth-like authentication headers 26 # Fake Shibboleth-like authentication headers
23 RequestHeader set X-SHIB-user "testeins" 27 RequestHeader set X-SHIB-user "testeins"
24 RequestHeader set X-SHIB-roles "cn=Imis-World, cn=mst_06010, cn=mst_11010" 28 # Erfasser
29 RequestHeader set X-SHIB-roles "cn=mst_11010"
25 30
26 # Add Proxy for Lada-server 31 # Add Proxy for Lada-server
27 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/" 32 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
28 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/" 33 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
29 # Add Proxy for printing 34 # Add Proxy for printing
30 #ProxyPass /lada-client/lada-printer http://MAPFISH-PRINT-URL/lada_print 35 #ProxyPass /lada-client/lada-printer http://MAPFISH-PRINT-URL/lada_print
31 #ProxyPassReverse /lada-client/lada-printer http://MAPFISH-PRINT-URL/lada_print 36 #ProxyPassReverse /lada-client/lada-printer http://MAPFISH-PRINT-URL/lada_print
32 </VirtualHost> 37 </VirtualHost>
38
39 <VirtualHost *:81>
40 ServerAdmin webmaster@localhost
41 ErrorLog logs/lada-error_log
42 CustomLog logs/lada-access_log common
43
44 # Fake Shibboleth-like authentication headers
45 RequestHeader set X-SHIB-user "testeins"
46 # Status-Erfasser
47 RequestHeader set X-SHIB-roles "cn=mst_11010_status"
48
49 # Add Proxy for Lada-server
50 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
51 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
52 </VirtualHost>
53
54 <VirtualHost *:82>
55 ServerAdmin webmaster@localhost
56 ErrorLog logs/lada-error_log
57 CustomLog logs/lada-access_log common
58
59 # Fake Shibboleth-like authentication headers
60 RequestHeader set X-SHIB-user "testeins"
61 # Status-Land
62 RequestHeader set X-SHIB-roles "cn=land_11_status"
63
64 # Add Proxy for Lada-server
65 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
66 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
67 </VirtualHost>
68
69 <VirtualHost *:83>
70 ServerAdmin webmaster@localhost
71 ErrorLog logs/lada-error_log
72 CustomLog logs/lada-access_log common
73
74 # Fake Shibboleth-like authentication headers
75 RequestHeader set X-SHIB-user "testeins"
76 # Status-Leitstelle
77 RequestHeader set X-SHIB-roles "cn=lst_kiel"
78
79 # Add Proxy for Lada-server
80 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
81 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
82 </VirtualHost>

http://lada.wald.intevation.org