annotate custom-vhosts.conf @ 1040:6a176e9ca890

Removed TODOs in i18n, some probably provisorily.
author Tom Gottfried <tom@intevation.de>
date Wed, 24 Feb 2016 17:56:47 +0100
parents 418e25969a16
children 3ef492b5240b
rev   line source
953
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
1 # Virtual Hosts
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
2 #
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
3 # Required modules: mod_log_config
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
4
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
5 # If you want to maintain multiple domains/hostnames on your
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
6 # machine you can setup VirtualHost containers for them. Most configurations
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
7 # use only name-based virtual hosts so the server doesn't need to worry about
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
8 # IP addresses. This is indicated by the asterisks in the directives below.
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
9 #
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
10 # Please see the documentation at
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
11 # <URL:http://httpd.apache.org/docs/2.4/vhosts/>
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
12 # for further details before you try to setup virtual hosts.
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
13 #
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
14 # You may use the command line option '-S' to verify your virtual host
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
15 # configuration.
1018
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
16 Listen 80
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
17 Listen 81
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
18 Listen 82
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
19 Listen 83
953
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
20
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
21 <VirtualHost *:80>
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
22 ServerAdmin webmaster@localhost
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
23 ErrorLog logs/lada-error_log
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
24 CustomLog logs/lada-access_log common
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
25
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
26 # Fake Shibboleth-like authentication headers
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
27 RequestHeader set X-SHIB-user "testeins"
1018
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
28 # Erfasser
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
29 RequestHeader set X-SHIB-roles "cn=mst_11010"
953
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
30
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
31 # Add Proxy for Lada-server
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
32 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
33 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
34 # Add Proxy for printing
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
35 #ProxyPass /lada-client/lada-printer http://MAPFISH-PRINT-URL/lada_print
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
36 #ProxyPassReverse /lada-client/lada-printer http://MAPFISH-PRINT-URL/lada_print
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
37 </VirtualHost>
1018
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
38
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
39 <VirtualHost *:81>
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
40 ServerAdmin webmaster@localhost
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
41 ErrorLog logs/lada-error_log
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
42 CustomLog logs/lada-access_log common
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
43
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
44 # Fake Shibboleth-like authentication headers
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
45 RequestHeader set X-SHIB-user "testeins"
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
46 # Status-Erfasser
1040
6a176e9ca890 Removed TODOs in i18n, some probably provisorily.
Tom Gottfried <tom@intevation.de>
parents: 1018
diff changeset
47 RequestHeader set X-SHIB-roles "cn=mst_11010_status,cn=land_11_status"
1018
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
48
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
49 # Add Proxy for Lada-server
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
50 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
51 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
52 </VirtualHost>
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
53
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
54 <VirtualHost *:82>
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
55 ServerAdmin webmaster@localhost
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
56 ErrorLog logs/lada-error_log
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
57 CustomLog logs/lada-access_log common
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
58
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
59 # Fake Shibboleth-like authentication headers
1040
6a176e9ca890 Removed TODOs in i18n, some probably provisorily.
Tom Gottfried <tom@intevation.de>
parents: 1018
diff changeset
60 RequestHeader set X-SHIB-user "testnull"
1018
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
61 # Status-Land
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
62 RequestHeader set X-SHIB-roles "cn=land_11_status"
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
63
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
64 # Add Proxy for Lada-server
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
65 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
66 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
67 </VirtualHost>
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
68
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
69 <VirtualHost *:83>
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
70 ServerAdmin webmaster@localhost
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
71 ErrorLog logs/lada-error_log
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
72 CustomLog logs/lada-access_log common
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
73
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
74 # Fake Shibboleth-like authentication headers
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
75 RequestHeader set X-SHIB-user "testeins"
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
76 # Status-Leitstelle
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
77 RequestHeader set X-SHIB-roles "cn=lst_kiel"
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
78
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
79 # Add Proxy for Lada-server
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
80 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
81 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
82 </VirtualHost>

http://lada.wald.intevation.org