annotate contrib/apache/mxd-testbed.conf @ 1:d4da741e3970

Added initial apache configuration stuff.
author Bjoern Schilberg <bjoern@intevation.de>
date Thu, 03 Mar 2011 14:59:27 +0100
parents
children d6a660a3f70d
rev   line source
1
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
1 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
2 # VirtualHost template
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
3 # 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
4 # Files must have the .conf suffix to be loaded.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
5 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
6 # 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
7 # about virtual hosts.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
8 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
9 # NameVirtualHost statements can be added to /etc/apache2/listen.conf.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
10 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
11 # Almost any Apache directive may go into a VirtualHost container.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
12 # 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
13 # server name.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
14 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
15 <VirtualHost *:80>
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
16 ServerAdmin webmaster@dummy-host.example.com
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
17 ServerName dummy-host.example.com
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
18
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
19 # DocumentRoot: The directory out of which you will serve your
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
20 # 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
21 # symbolic links and aliases may be used to point to other locations.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
22 DocumentRoot /srv/www/vhosts/dummy-host.example.com
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 # if not specified, the global error log is used
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
25 ErrorLog /var/log/apache2/dummy-host.example.com-error_log
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
26 CustomLog /var/log/apache2/dummy-host.example.com-access_log combined
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
27
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
28 # don't loose time with IP address lookups
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
29 HostnameLookups Off
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
30
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
31 # needed for named virtual hosts
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
32 UseCanonicalName Off
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
33
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
34 # configures the footer on server-generated documents
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
35 ServerSignature On
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
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
38 # Optionally, include *.conf files from /etc/apache2/conf.d/
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
39 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
40 # For example, to allow execution of PHP scripts:
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 # Include /etc/apache2/conf.d/mod_php4.conf
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
43 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
44 # or, to include all configuration snippets added by packages:
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
45 # Include /etc/apache2/conf.d/*.conf
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
46
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
47
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
48 # ScriptAlias: This controls which directories contain server scripts.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
49 # ScriptAliases are essentially the same as Aliases, except that
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
50 # documents in the realname directory are treated as applications and
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
51 # 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
52 # 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
53 # Alias.
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 ScriptAlias /cgi-bin/ "/srv/www/vhosts/dummy-host.example.com/cgi-bin/"
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
56
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
57 # "/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
58 # 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
59 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
60 <Directory "/srv/www/vhosts/dummy-host.example.com/cgi-bin">
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
61 AllowOverride None
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
62 Options +ExecCGI -Includes
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
63 Order allow,deny
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
64 Allow from all
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
65 </Directory>
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
66
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
67
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
68 # UserDir: The name of the directory that is appended onto a user's home
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
69 # directory if a ~user request is received.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
70 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
71 # To disable it, simply remove userdir from the list of modules in APACHE_MODULES
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
72 # in /etc/sysconfig/apache2.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
73 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
74 <IfModule mod_userdir.c>
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
75 # Note that the name of the user directory ("public_html") cannot simply be
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
76 # changed here, since it is a compile time setting. The apache package
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
77 # would have to be rebuilt. You could work around by deleting
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
78 # /usr/sbin/suexec, but then all scripts from the directories would be
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
79 # executed with the UID of the webserver.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
80 UserDir public_html
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
81 # The actual configuration of the directory is in
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
82 # /etc/apache2/mod_userdir.conf.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
83 Include /etc/apache2/mod_userdir.conf
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
84 # You can, however, change the ~ if you find it awkward, by mapping e.g.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
85 # http://www.example.com/users/karl-heinz/ --> /home/karl-heinz/public_html/
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
86 #AliasMatch ^/users/([a-zA-Z0-9-_.]*)/?(.*) /home/$1/public_html/$2
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
87 </IfModule>
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
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
90 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
91 # This should be changed to whatever you set DocumentRoot to.
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 <Directory "/srv/www/vhosts/dummy-host.example.com">
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
94
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
95 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
96 # Possible values for the Options directive are "None", "All",
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
97 # or any combination of:
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
98 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
99 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
100 # Note that "MultiViews" must be named *explicitly* --- "Options All"
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
101 # doesn't give it to you.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
102 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
103 # The Options directive is both complicated and important. Please see
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
104 # 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
105 # for more information.
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 Options Indexes FollowSymLinks
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
108
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
109 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
110 # AllowOverride controls what directives may be placed in .htaccess files.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
111 # 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
112 # Options FileInfo AuthConfig Limit
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 AllowOverride None
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
115
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 # Controls who can get stuff from this server.
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
118 #
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
119 Order allow,deny
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
120 Allow from all
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 </Directory>
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
123
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
124 </VirtualHost>
d4da741e3970 Added initial apache configuration stuff.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff changeset
125
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)