Mercurial > lada > lada-client
annotate custom-vhosts.conf @ 1206:695e93e3275d
Add missing requirement.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 30 Sep 2016 15:08:12 +0200 |
parents | 5489ae5ef9e0 |
children | 75e5caebd392 |
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. |
1188
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1149
diff
changeset
|
16 |
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1149
diff
changeset
|
17 # Listening on port 80 is configured elsewhere in a Debian installation |
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1149
diff
changeset
|
18 #Listen 80 |
1018
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
19 Listen 81 |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
20 Listen 82 |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
21 Listen 83 |
1041
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1040
diff
changeset
|
22 Listen 84 |
953
c3feae5ee714
Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
23 |
c3feae5ee714
Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
24 <VirtualHost *:80> |
c3feae5ee714
Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
25 ServerAdmin webmaster@localhost |
1188
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1149
diff
changeset
|
26 ErrorLog ${APACHE_LOG_DIR}/error.log |
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1149
diff
changeset
|
27 CustomLog ${APACHE_LOG_DIR}/access.log combined |
953
c3feae5ee714
Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
28 |
c3feae5ee714
Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
29 # Fake Shibboleth-like authentication headers |
c3feae5ee714
Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
30 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
|
31 # Erfasser |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
32 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
|
33 |
c3feae5ee714
Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
34 # Add Proxy for Lada-server |
1149
860f03b39a83
Prepare for new server version and cleanup roles.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
35 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.3.0/" |
860f03b39a83
Prepare for new server version and cleanup roles.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
36 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.3.0/" |
953
c3feae5ee714
Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
37 # Add Proxy for printing |
c3feae5ee714
Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
38 #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
|
39 #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
|
40 </VirtualHost> |
1018
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
41 |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
42 <VirtualHost *:81> |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
43 ServerAdmin webmaster@localhost |
1188
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1149
diff
changeset
|
44 ErrorLog ${APACHE_LOG_DIR}/error.log |
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1149
diff
changeset
|
45 CustomLog ${APACHE_LOG_DIR}/access.log combined |
1018
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
46 |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
47 # Fake Shibboleth-like authentication headers |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
48 RequestHeader set X-SHIB-user "testeins" |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
49 # Status-Erfasser |
1149
860f03b39a83
Prepare for new server version and cleanup roles.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
50 RequestHeader set X-SHIB-roles "cn=mst_11010_status" |
1018
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
51 |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
52 # Add Proxy for Lada-server |
1149
860f03b39a83
Prepare for new server version and cleanup roles.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
53 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.3.0/" |
860f03b39a83
Prepare for new server version and cleanup roles.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
54 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.3.0/" |
1018
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
55 </VirtualHost> |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
56 |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
57 <VirtualHost *:82> |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
58 ServerAdmin webmaster@localhost |
1188
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1149
diff
changeset
|
59 ErrorLog ${APACHE_LOG_DIR}/error.log |
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1149
diff
changeset
|
60 CustomLog ${APACHE_LOG_DIR}/access.log combined |
1018
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
61 |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
62 # Fake Shibboleth-like authentication headers |
1040
6a176e9ca890
Removed TODOs in i18n, some probably provisorily.
Tom Gottfried <tom@intevation.de>
parents:
1018
diff
changeset
|
63 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
|
64 # Status-Land |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
65 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
|
66 |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
67 # Add Proxy for Lada-server |
1149
860f03b39a83
Prepare for new server version and cleanup roles.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
68 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.3.0/" |
860f03b39a83
Prepare for new server version and cleanup roles.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
69 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.3.0/" |
1018
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
70 </VirtualHost> |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
71 |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
72 <VirtualHost *:83> |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
73 ServerAdmin webmaster@localhost |
1188
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1149
diff
changeset
|
74 ErrorLog ${APACHE_LOG_DIR}/error.log |
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1149
diff
changeset
|
75 CustomLog ${APACHE_LOG_DIR}/access.log combined |
1018
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
76 |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
77 # Fake Shibboleth-like authentication headers |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
78 RequestHeader set X-SHIB-user "testeins" |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
79 # Status-Leitstelle |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
80 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
|
81 |
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
82 # Add Proxy for Lada-server |
1149
860f03b39a83
Prepare for new server version and cleanup roles.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
83 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.3.0/" |
860f03b39a83
Prepare for new server version and cleanup roles.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
84 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.3.0/" |
1018
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
953
diff
changeset
|
85 </VirtualHost> |
1041
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1040
diff
changeset
|
86 |
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1040
diff
changeset
|
87 <VirtualHost *:84> |
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1040
diff
changeset
|
88 ServerAdmin webmaster@localhost |
1188
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1149
diff
changeset
|
89 ErrorLog ${APACHE_LOG_DIR}/error.log |
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1149
diff
changeset
|
90 CustomLog ${APACHE_LOG_DIR}/access.log combined |
1041
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1040
diff
changeset
|
91 |
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1040
diff
changeset
|
92 # Fake Shibboleth-like authentication headers |
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1040
diff
changeset
|
93 RequestHeader set X-SHIB-user "testeins" |
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1040
diff
changeset
|
94 # Stammdatenpflege-Land |
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1040
diff
changeset
|
95 RequestHeader set X-SHIB-roles "cn=land_06_stamm" |
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1040
diff
changeset
|
96 |
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1040
diff
changeset
|
97 # Add Proxy for Lada-server |
1149
860f03b39a83
Prepare for new server version and cleanup roles.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
98 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.3.0/" |
860f03b39a83
Prepare for new server version and cleanup roles.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
99 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.3.0/" |
1041
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1040
diff
changeset
|
100 </VirtualHost> |