annotate custom-vhosts.conf @ 1434:ff5a402cd63d tip

set version to 2.7-SNAPSHOT for default branch
author Marco Lechner, Bundesamt fuer Strahlenschutz, SW 2.1 <mlechner@bfs.de>
date Fri, 07 Apr 2017 11:32:26 +0200
parents a1264beb05f9
children
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
1434
ff5a402cd63d set version to 2.7-SNAPSHOT for default branch
Marco Lechner, Bundesamt fuer Strahlenschutz, SW 2.1 <mlechner@bfs.de>
parents: 1431
diff changeset
24 Define LADA_SERVER_VERSION 2.7-SNAPSHOT
1216
75e5caebd392 Adapt version name.
Tom Gottfried <tom@intevation.de>
parents: 1188
diff changeset
25
953
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
26 <VirtualHost *:80>
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
27 ServerAdmin webmaster@localhost
1188
5489ae5ef9e0 Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents: 1149
diff changeset
28 ErrorLog ${APACHE_LOG_DIR}/error.log
5489ae5ef9e0 Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents: 1149
diff changeset
29 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
30
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
31 # Fake Shibboleth-like authentication headers
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
32 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
33 # Erfasser
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
34 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
35
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
36 # Add Proxy for Lada-server
1216
75e5caebd392 Adapt version name.
Tom Gottfried <tom@intevation.de>
parents: 1188
diff changeset
37 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
75e5caebd392 Adapt version name.
Tom Gottfried <tom@intevation.de>
parents: 1188
diff changeset
38 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
953
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
39 # Add Proxy for printing
c3feae5ee714 Add example config for V-host/proxy and adapt docs.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
40 #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
41 #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
42 </VirtualHost>
1018
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 <VirtualHost *:81>
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
45 ServerAdmin webmaster@localhost
1188
5489ae5ef9e0 Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents: 1149
diff changeset
46 ErrorLog ${APACHE_LOG_DIR}/error.log
5489ae5ef9e0 Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents: 1149
diff changeset
47 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
48
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
49 # Fake Shibboleth-like authentication headers
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
50 RequestHeader set X-SHIB-user "testeins"
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
51 # Status-Erfasser
1149
860f03b39a83 Prepare for new server version and cleanup roles.
Tom Gottfried <tom@intevation.de>
parents: 1041
diff changeset
52 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
53
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
54 # Add Proxy for Lada-server
1216
75e5caebd392 Adapt version name.
Tom Gottfried <tom@intevation.de>
parents: 1188
diff changeset
55 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
75e5caebd392 Adapt version name.
Tom Gottfried <tom@intevation.de>
parents: 1188
diff changeset
56 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
1018
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
57 </VirtualHost>
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 <VirtualHost *:82>
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
60 ServerAdmin webmaster@localhost
1188
5489ae5ef9e0 Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents: 1149
diff changeset
61 ErrorLog ${APACHE_LOG_DIR}/error.log
5489ae5ef9e0 Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents: 1149
diff changeset
62 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
63
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
64 # Fake Shibboleth-like authentication headers
1040
6a176e9ca890 Removed TODOs in i18n, some probably provisorily.
Tom Gottfried <tom@intevation.de>
parents: 1018
diff changeset
65 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
66 # Status-Land
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
67 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
68
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
69 # Add Proxy for Lada-server
1216
75e5caebd392 Adapt version name.
Tom Gottfried <tom@intevation.de>
parents: 1188
diff changeset
70 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
75e5caebd392 Adapt version name.
Tom Gottfried <tom@intevation.de>
parents: 1188
diff changeset
71 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
1018
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
72 </VirtualHost>
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 <VirtualHost *:83>
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
75 ServerAdmin webmaster@localhost
1188
5489ae5ef9e0 Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents: 1149
diff changeset
76 ErrorLog ${APACHE_LOG_DIR}/error.log
5489ae5ef9e0 Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents: 1149
diff changeset
77 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
78
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
79 # Fake Shibboleth-like authentication headers
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
80 RequestHeader set X-SHIB-user "testeins"
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
81 # Status-Leitstelle
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
82 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
83
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
84 # Add Proxy for Lada-server
1216
75e5caebd392 Adapt version name.
Tom Gottfried <tom@intevation.de>
parents: 1188
diff changeset
85 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
75e5caebd392 Adapt version name.
Tom Gottfried <tom@intevation.de>
parents: 1188
diff changeset
86 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
1018
418e25969a16 Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents: 953
diff changeset
87 </VirtualHost>
1041
3ef492b5240b Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents: 1040
diff changeset
88
3ef492b5240b Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents: 1040
diff changeset
89 <VirtualHost *:84>
3ef492b5240b Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents: 1040
diff changeset
90 ServerAdmin webmaster@localhost
1188
5489ae5ef9e0 Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents: 1149
diff changeset
91 ErrorLog ${APACHE_LOG_DIR}/error.log
5489ae5ef9e0 Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents: 1149
diff changeset
92 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
93
3ef492b5240b Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents: 1040
diff changeset
94 # Fake Shibboleth-like authentication headers
3ef492b5240b Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents: 1040
diff changeset
95 RequestHeader set X-SHIB-user "testeins"
3ef492b5240b Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents: 1040
diff changeset
96 # Stammdatenpflege-Land
3ef492b5240b Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents: 1040
diff changeset
97 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
98
3ef492b5240b Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents: 1040
diff changeset
99 # Add Proxy for Lada-server
1216
75e5caebd392 Adapt version name.
Tom Gottfried <tom@intevation.de>
parents: 1188
diff changeset
100 ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
75e5caebd392 Adapt version name.
Tom Gottfried <tom@intevation.de>
parents: 1188
diff changeset
101 ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-${LADA_SERVER_VERSION}/"
1041
3ef492b5240b Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents: 1040
diff changeset
102 </VirtualHost>

http://lada.wald.intevation.org