Mercurial > mxd2map
comparison 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 |
comparison
equal
deleted
inserted
replaced
0:109e10c76841 | 1:d4da741e3970 |
---|---|
1 # | |
2 # VirtualHost template | |
3 # Note: to use the template, rename it to /etc/apache2/vhost.d/yourvhost.conf. | |
4 # Files must have the .conf suffix to be loaded. | |
5 # | |
6 # See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints | |
7 # about virtual hosts. | |
8 # | |
9 # NameVirtualHost statements can be added to /etc/apache2/listen.conf. | |
10 # | |
11 # Almost any Apache directive may go into a VirtualHost container. | |
12 # The first VirtualHost section is used for requests without a known | |
13 # server name. | |
14 # | |
15 <VirtualHost *:80> | |
16 ServerAdmin webmaster@dummy-host.example.com | |
17 ServerName dummy-host.example.com | |
18 | |
19 # DocumentRoot: The directory out of which you will serve your | |
20 # documents. By default, all requests are taken from this directory, but | |
21 # symbolic links and aliases may be used to point to other locations. | |
22 DocumentRoot /srv/www/vhosts/dummy-host.example.com | |
23 | |
24 # if not specified, the global error log is used | |
25 ErrorLog /var/log/apache2/dummy-host.example.com-error_log | |
26 CustomLog /var/log/apache2/dummy-host.example.com-access_log combined | |
27 | |
28 # don't loose time with IP address lookups | |
29 HostnameLookups Off | |
30 | |
31 # needed for named virtual hosts | |
32 UseCanonicalName Off | |
33 | |
34 # configures the footer on server-generated documents | |
35 ServerSignature On | |
36 | |
37 | |
38 # Optionally, include *.conf files from /etc/apache2/conf.d/ | |
39 # | |
40 # For example, to allow execution of PHP scripts: | |
41 # | |
42 # Include /etc/apache2/conf.d/mod_php4.conf | |
43 # | |
44 # or, to include all configuration snippets added by packages: | |
45 # Include /etc/apache2/conf.d/*.conf | |
46 | |
47 | |
48 # ScriptAlias: This controls which directories contain server scripts. | |
49 # ScriptAliases are essentially the same as Aliases, except that | |
50 # documents in the realname directory are treated as applications and | |
51 # run by the server when requested rather than as documents sent to the client. | |
52 # The same rules about trailing "/" apply to ScriptAlias directives as to | |
53 # Alias. | |
54 # | |
55 ScriptAlias /cgi-bin/ "/srv/www/vhosts/dummy-host.example.com/cgi-bin/" | |
56 | |
57 # "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased | |
58 # CGI directory exists, if you have one, and where ScriptAlias points to. | |
59 # | |
60 <Directory "/srv/www/vhosts/dummy-host.example.com/cgi-bin"> | |
61 AllowOverride None | |
62 Options +ExecCGI -Includes | |
63 Order allow,deny | |
64 Allow from all | |
65 </Directory> | |
66 | |
67 | |
68 # UserDir: The name of the directory that is appended onto a user's home | |
69 # directory if a ~user request is received. | |
70 # | |
71 # To disable it, simply remove userdir from the list of modules in APACHE_MODULES | |
72 # in /etc/sysconfig/apache2. | |
73 # | |
74 <IfModule mod_userdir.c> | |
75 # Note that the name of the user directory ("public_html") cannot simply be | |
76 # changed here, since it is a compile time setting. The apache package | |
77 # would have to be rebuilt. You could work around by deleting | |
78 # /usr/sbin/suexec, but then all scripts from the directories would be | |
79 # executed with the UID of the webserver. | |
80 UserDir public_html | |
81 # The actual configuration of the directory is in | |
82 # /etc/apache2/mod_userdir.conf. | |
83 Include /etc/apache2/mod_userdir.conf | |
84 # You can, however, change the ~ if you find it awkward, by mapping e.g. | |
85 # http://www.example.com/users/karl-heinz/ --> /home/karl-heinz/public_html/ | |
86 #AliasMatch ^/users/([a-zA-Z0-9-_.]*)/?(.*) /home/$1/public_html/$2 | |
87 </IfModule> | |
88 | |
89 | |
90 # | |
91 # This should be changed to whatever you set DocumentRoot to. | |
92 # | |
93 <Directory "/srv/www/vhosts/dummy-host.example.com"> | |
94 | |
95 # | |
96 # Possible values for the Options directive are "None", "All", | |
97 # or any combination of: | |
98 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews | |
99 # | |
100 # Note that "MultiViews" must be named *explicitly* --- "Options All" | |
101 # doesn't give it to you. | |
102 # | |
103 # The Options directive is both complicated and important. Please see | |
104 # http://httpd.apache.org/docs-2.2/mod/core.html#options | |
105 # for more information. | |
106 # | |
107 Options Indexes FollowSymLinks | |
108 | |
109 # | |
110 # AllowOverride controls what directives may be placed in .htaccess files. | |
111 # It can be "All", "None", or any combination of the keywords: | |
112 # Options FileInfo AuthConfig Limit | |
113 # | |
114 AllowOverride None | |
115 | |
116 # | |
117 # Controls who can get stuff from this server. | |
118 # | |
119 Order allow,deny | |
120 Allow from all | |
121 | |
122 </Directory> | |
123 | |
124 </VirtualHost> | |
125 |