Mercurial > mxd2map
annotate contrib/apache/mxd-testbed.conf @ 284:b48bcd1ab1ab
Added example for Query-layers
author | Stephan Holl <stephan.holl@intevation.de> |
---|---|
date | Thu, 10 Nov 2011 10:15:24 +0100 |
parents | 4dc2b9aa3c57 |
children |
rev | line source |
---|---|
256
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
1 # |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
2 # Copyright (c) 2011 by Intevation GmbH, Germany <info@intevation.de> |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
3 # |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
4 # This file is part of MXD2map. |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
5 # |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
6 # This program is free software under the LGPL (>=v2.1) |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
7 # Read the file LICENCE.txt coming with the software for details |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
8 # or visit http://www.gnu.org/licenses/ if it does not exist. |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
9 # |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
10 # MXD2map has been developed on behalf of the |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
11 # Bundesamt fuer Seeschifffahrt und Hydrographie (BSH) in Hamburg |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
12 # by Intevation GmbH. |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
13 # |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
14 # Authors: |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
15 # Raimund Renkert <raimund.renkert@intevation.de> |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
16 # Bjoern Schilberg <bjoern.schilberg@intevation.de> |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
17 # Stephan Holl <stephan.holl@intevation.de> |
4dc2b9aa3c57
Added LGPL header.
raimund renkert <raimund.renkert@intevation.de>
parents:
3
diff
changeset
|
18 |
1
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
19 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
20 # VirtualHost template |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
21 # Note: to use the template, rename it to /etc/apache2/vhost.d/yourvhost.conf. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
22 # Files must have the .conf suffix to be loaded. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
23 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
24 # See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
25 # about virtual hosts. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
26 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
27 # NameVirtualHost statements can be added to /etc/apache2/listen.conf. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
28 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
29 # Almost any Apache directive may go into a VirtualHost container. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
30 # The first VirtualHost section is used for requests without a known |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
31 # server name. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
32 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
33 <VirtualHost *:80> |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
34 ServerAdmin webmaster@dummy-host.example.com |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
35 ServerName dummy-host.example.com |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
36 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
37 # DocumentRoot: The directory out of which you will serve your |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
38 # documents. By default, all requests are taken from this directory, but |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
39 # symbolic links and aliases may be used to point to other locations. |
3
d6a660a3f70d
Apache adjustments for the mxd-testbed.
Bjoern Schilberg <bjoern@intevation.de>
parents:
1
diff
changeset
|
40 DocumentRoot /home/intevation/mxd-testbed/web |
1
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
41 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
42 # if not specified, the global error log is used |
3
d6a660a3f70d
Apache adjustments for the mxd-testbed.
Bjoern Schilberg <bjoern@intevation.de>
parents:
1
diff
changeset
|
43 ErrorLog /var/log/apache2/mxd-testbed_error.log |
d6a660a3f70d
Apache adjustments for the mxd-testbed.
Bjoern Schilberg <bjoern@intevation.de>
parents:
1
diff
changeset
|
44 CustomLog /var/log/apache2/mxd-testbed_access.log combined |
1
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
45 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
46 # don't loose time with IP address lookups |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
47 HostnameLookups Off |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
48 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
49 # needed for named virtual hosts |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
50 UseCanonicalName Off |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
51 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
52 # configures the footer on server-generated documents |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
53 ServerSignature On |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
54 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
55 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
56 # Optionally, include *.conf files from /etc/apache2/conf.d/ |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
57 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
58 # For example, to allow execution of PHP scripts: |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
59 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
60 # Include /etc/apache2/conf.d/mod_php4.conf |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
61 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
62 # or, to include all configuration snippets added by packages: |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
63 # Include /etc/apache2/conf.d/*.conf |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
64 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
65 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
66 # ScriptAlias: This controls which directories contain server scripts. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
67 # ScriptAliases are essentially the same as Aliases, except that |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
68 # documents in the realname directory are treated as applications and |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
69 # run by the server when requested rather than as documents sent to the client. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
70 # The same rules about trailing "/" apply to ScriptAlias directives as to |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
71 # Alias. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
72 # |
3
d6a660a3f70d
Apache adjustments for the mxd-testbed.
Bjoern Schilberg <bjoern@intevation.de>
parents:
1
diff
changeset
|
73 ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/" |
1
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
74 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
75 # "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
76 # CGI directory exists, if you have one, and where ScriptAlias points to. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
77 # |
3
d6a660a3f70d
Apache adjustments for the mxd-testbed.
Bjoern Schilberg <bjoern@intevation.de>
parents:
1
diff
changeset
|
78 <Directory "/srv/www/cgi-bin"> |
1
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
79 AllowOverride None |
3
d6a660a3f70d
Apache adjustments for the mxd-testbed.
Bjoern Schilberg <bjoern@intevation.de>
parents:
1
diff
changeset
|
80 Options +ExecCGI -Includes +FollowSymLinks |
1
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
81 Order allow,deny |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
82 Allow from all |
3
d6a660a3f70d
Apache adjustments for the mxd-testbed.
Bjoern Schilberg <bjoern@intevation.de>
parents:
1
diff
changeset
|
83 |
1
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
84 </Directory> |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
85 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
86 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
87 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
88 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
89 # This should be changed to whatever you set DocumentRoot to. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
90 # |
3
d6a660a3f70d
Apache adjustments for the mxd-testbed.
Bjoern Schilberg <bjoern@intevation.de>
parents:
1
diff
changeset
|
91 <Directory "/home/intevation/mxd-testbed/web"> |
1
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
92 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
93 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
94 # Possible values for the Options directive are "None", "All", |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
95 # or any combination of: |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
96 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
97 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
98 # Note that "MultiViews" must be named *explicitly* --- "Options All" |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
99 # doesn't give it to you. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
100 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
101 # The Options directive is both complicated and important. Please see |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
102 # http://httpd.apache.org/docs-2.2/mod/core.html#options |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
103 # for more information. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
104 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
105 Options Indexes FollowSymLinks |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
106 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
107 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
108 # AllowOverride controls what directives may be placed in .htaccess files. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
109 # It can be "All", "None", or any combination of the keywords: |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
110 # Options FileInfo AuthConfig Limit |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
111 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
112 AllowOverride None |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
113 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
114 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
115 # Controls who can get stuff from this server. |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
116 # |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
117 Order allow,deny |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
118 Allow from all |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
119 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
120 </Directory> |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
121 |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
122 </VirtualHost> |
d4da741e3970
Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
123 |