4 |
- |
1 |
#
|
|
|
2 |
# This is the main Apache server configuration file. It contains the
|
|
|
3 |
# configuration directives that give the server its instructions.
|
|
|
4 |
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
|
|
|
5 |
# In particular, see
|
|
|
6 |
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
|
|
|
7 |
# for a discussion of each configuration directive.
|
|
|
8 |
#
|
|
|
9 |
#
|
|
|
10 |
# Do NOT simply read the instructions in here without understanding
|
|
|
11 |
# what they do. They're here only as hints or reminders. If you are unsure
|
|
|
12 |
# consult the online docs. You have been warned.
|
|
|
13 |
#
|
|
|
14 |
# The configuration directives are grouped into three basic sections:
|
|
|
15 |
# 1. Directives that control the operation of the Apache server process as a
|
|
|
16 |
# whole (the 'global environment').
|
|
|
17 |
# 2. Directives that define the parameters of the 'main' or 'default' server,
|
|
|
18 |
# which responds to requests that aren't handled by a virtual host.
|
|
|
19 |
# These directives also provide default values for the settings
|
|
|
20 |
# of all virtual hosts.
|
|
|
21 |
# 3. Settings for virtual hosts, which allow Web requests to be sent to
|
|
|
22 |
# different IP addresses or hostnames and have them handled by the
|
|
|
23 |
# same Apache server process.
|
|
|
24 |
#
|
|
|
25 |
# Configuration and logfile names: If the filenames you specify for many
|
|
|
26 |
# of the server's control files begin with "/" (or "drive:/" for Win32), the
|
|
|
27 |
# server will use that explicit path. If the filenames do *not* begin
|
|
|
28 |
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
|
|
|
29 |
# with ServerRoot set to "/etc/httpd" will be interpreted by the
|
|
|
30 |
# server as "/etc/httpd/logs/foo.log".
|
|
|
31 |
#
|
|
|
32 |
|
|
|
33 |
### Section 1: Global Environment
|
|
|
34 |
#
|
|
|
35 |
# The directives in this section affect the overall operation of Apache,
|
|
|
36 |
# such as the number of concurrent requests it can handle or where it
|
|
|
37 |
# can find its configuration files.
|
|
|
38 |
#
|
|
|
39 |
|
|
|
40 |
#
|
|
|
41 |
# Don't give away too much information about all the subcomponents
|
|
|
42 |
# we are running. Comment out this line if you don't mind remote sites
|
|
|
43 |
# finding out what major optional modules you are running
|
146 |
- |
44 |
ServerTokens Prod
|
4 |
- |
45 |
|
|
|
46 |
#
|
|
|
47 |
# ServerRoot: The top of the directory tree under which the server's
|
|
|
48 |
# configuration, error, and log files are kept.
|
|
|
49 |
#
|
|
|
50 |
# NOTE! If you intend to place this on an NFS (or otherwise network)
|
|
|
51 |
# mounted filesystem then please read the LockFile documentation
|
|
|
52 |
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
|
|
|
53 |
# you will save yourself a lot of trouble.
|
|
|
54 |
#
|
|
|
55 |
# Do NOT add a slash at the end of the directory path.
|
|
|
56 |
#
|
|
|
57 |
ServerRoot "/etc/httpd"
|
|
|
58 |
|
|
|
59 |
#
|
|
|
60 |
# PidFile: The file in which the server should record its process
|
|
|
61 |
# identification number when it starts. Note the PIDFILE variable in
|
|
|
62 |
# /etc/sysconfig/httpd must be set appropriately if this location is
|
|
|
63 |
# changed.
|
|
|
64 |
#
|
|
|
65 |
PidFile run/httpd.pid
|
|
|
66 |
|
|
|
67 |
#
|
|
|
68 |
# Timeout: The number of seconds before receives and sends time out.
|
|
|
69 |
#
|
|
|
70 |
Timeout 60
|
|
|
71 |
|
|
|
72 |
#
|
|
|
73 |
# KeepAlive: Whether or not to allow persistent connections (more than
|
|
|
74 |
# one request per connection). Set to "Off" to deactivate.
|
|
|
75 |
#
|
|
|
76 |
KeepAlive Off
|
|
|
77 |
|
|
|
78 |
#
|
|
|
79 |
# MaxKeepAliveRequests: The maximum number of requests to allow
|
|
|
80 |
# during a persistent connection. Set to 0 to allow an unlimited amount.
|
|
|
81 |
# We recommend you leave this number high, for maximum performance.
|
|
|
82 |
#
|
|
|
83 |
MaxKeepAliveRequests 100
|
|
|
84 |
|
|
|
85 |
#
|
|
|
86 |
# KeepAliveTimeout: Number of seconds to wait for the next request from the
|
|
|
87 |
# same client on the same connection.
|
|
|
88 |
#
|
|
|
89 |
KeepAliveTimeout 15
|
|
|
90 |
|
|
|
91 |
##
|
|
|
92 |
## Server-Pool Size Regulation (MPM specific)
|
|
|
93 |
##
|
|
|
94 |
|
|
|
95 |
# prefork MPM
|
|
|
96 |
# StartServers: number of server processes to start
|
|
|
97 |
# MinSpareServers: minimum number of server processes which are kept spare
|
|
|
98 |
# MaxSpareServers: maximum number of server processes which are kept spare
|
|
|
99 |
# ServerLimit: maximum value for MaxClients for the lifetime of the server
|
|
|
100 |
# MaxClients: maximum number of server processes allowed to start
|
|
|
101 |
# MaxRequestsPerChild: maximum number of requests a server process serves
|
|
|
102 |
<IfModule prefork.c>
|
|
|
103 |
StartServers 8
|
|
|
104 |
MinSpareServers 5
|
|
|
105 |
MaxSpareServers 20
|
|
|
106 |
ServerLimit 256
|
|
|
107 |
MaxClients 256
|
|
|
108 |
MaxRequestsPerChild 4000
|
|
|
109 |
</IfModule>
|
|
|
110 |
|
|
|
111 |
# worker MPM
|
|
|
112 |
# StartServers: initial number of server processes to start
|
|
|
113 |
# MaxClients: maximum number of simultaneous client connections
|
|
|
114 |
# MinSpareThreads: minimum number of worker threads which are kept spare
|
|
|
115 |
# MaxSpareThreads: maximum number of worker threads which are kept spare
|
|
|
116 |
# ThreadsPerChild: constant number of worker threads in each server process
|
|
|
117 |
# MaxRequestsPerChild: maximum number of requests a server process serves
|
|
|
118 |
<IfModule worker.c>
|
|
|
119 |
StartServers 4
|
|
|
120 |
MaxClients 300
|
|
|
121 |
MinSpareThreads 25
|
|
|
122 |
MaxSpareThreads 75
|
|
|
123 |
ThreadsPerChild 25
|
|
|
124 |
MaxRequestsPerChild 0
|
|
|
125 |
</IfModule>
|
|
|
126 |
|
|
|
127 |
#
|
|
|
128 |
# Listen: Allows you to bind Apache to specific IP addresses and/or
|
|
|
129 |
# ports, in addition to the default. See also the <VirtualHost>
|
|
|
130 |
# directive.
|
|
|
131 |
#
|
|
|
132 |
# Change this to Listen on specific IP addresses as shown below to
|
|
|
133 |
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
|
|
|
134 |
#
|
|
|
135 |
#Listen 12.34.56.78:80
|
|
|
136 |
Listen 80
|
142 |
- |
137 |
Listen 8000
|
4 |
- |
138 |
|
|
|
139 |
#
|
|
|
140 |
# Dynamic Shared Object (DSO) Support
|
|
|
141 |
#
|
|
|
142 |
# To be able to use the functionality of a module which was built as a DSO you
|
|
|
143 |
# have to place corresponding `LoadModule' lines at this location so the
|
|
|
144 |
# directives contained in it are actually available _before_ they are used.
|
|
|
145 |
# Statically compiled modules (those listed by `httpd -l') do not need
|
|
|
146 |
# to be loaded here.
|
|
|
147 |
#
|
|
|
148 |
# Example:
|
|
|
149 |
# LoadModule foo_module modules/mod_foo.so
|
|
|
150 |
#
|
|
|
151 |
LoadModule auth_basic_module modules/mod_auth_basic.so
|
|
|
152 |
LoadModule auth_digest_module modules/mod_auth_digest.so
|
|
|
153 |
LoadModule authn_file_module modules/mod_authn_file.so
|
|
|
154 |
LoadModule authn_alias_module modules/mod_authn_alias.so
|
|
|
155 |
LoadModule authn_anon_module modules/mod_authn_anon.so
|
|
|
156 |
LoadModule authn_dbm_module modules/mod_authn_dbm.so
|
|
|
157 |
LoadModule authn_default_module modules/mod_authn_default.so
|
|
|
158 |
LoadModule authz_host_module modules/mod_authz_host.so
|
|
|
159 |
LoadModule authz_user_module modules/mod_authz_user.so
|
|
|
160 |
LoadModule authz_owner_module modules/mod_authz_owner.so
|
|
|
161 |
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
|
|
|
162 |
LoadModule authz_dbm_module modules/mod_authz_dbm.so
|
|
|
163 |
LoadModule authz_default_module modules/mod_authz_default.so
|
|
|
164 |
LoadModule ldap_module modules/mod_ldap.so
|
|
|
165 |
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
|
|
|
166 |
LoadModule include_module modules/mod_include.so
|
|
|
167 |
LoadModule log_config_module modules/mod_log_config.so
|
|
|
168 |
LoadModule logio_module modules/mod_logio.so
|
|
|
169 |
LoadModule env_module modules/mod_env.so
|
|
|
170 |
LoadModule ext_filter_module modules/mod_ext_filter.so
|
|
|
171 |
LoadModule mime_magic_module modules/mod_mime_magic.so
|
|
|
172 |
LoadModule expires_module modules/mod_expires.so
|
|
|
173 |
LoadModule deflate_module modules/mod_deflate.so
|
|
|
174 |
LoadModule headers_module modules/mod_headers.so
|
|
|
175 |
LoadModule usertrack_module modules/mod_usertrack.so
|
|
|
176 |
LoadModule setenvif_module modules/mod_setenvif.so
|
|
|
177 |
LoadModule mime_module modules/mod_mime.so
|
|
|
178 |
LoadModule dav_module modules/mod_dav.so
|
|
|
179 |
LoadModule status_module modules/mod_status.so
|
|
|
180 |
LoadModule autoindex_module modules/mod_autoindex.so
|
|
|
181 |
LoadModule info_module modules/mod_info.so
|
|
|
182 |
LoadModule dav_fs_module modules/mod_dav_fs.so
|
|
|
183 |
LoadModule vhost_alias_module modules/mod_vhost_alias.so
|
|
|
184 |
LoadModule negotiation_module modules/mod_negotiation.so
|
|
|
185 |
LoadModule dir_module modules/mod_dir.so
|
|
|
186 |
LoadModule actions_module modules/mod_actions.so
|
|
|
187 |
LoadModule speling_module modules/mod_speling.so
|
|
|
188 |
LoadModule userdir_module modules/mod_userdir.so
|
|
|
189 |
LoadModule alias_module modules/mod_alias.so
|
|
|
190 |
LoadModule substitute_module modules/mod_substitute.so
|
|
|
191 |
LoadModule rewrite_module modules/mod_rewrite.so
|
|
|
192 |
LoadModule proxy_module modules/mod_proxy.so
|
|
|
193 |
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
|
|
|
194 |
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
|
|
|
195 |
LoadModule proxy_http_module modules/mod_proxy_http.so
|
|
|
196 |
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
|
|
|
197 |
LoadModule proxy_connect_module modules/mod_proxy_connect.so
|
|
|
198 |
LoadModule cache_module modules/mod_cache.so
|
|
|
199 |
LoadModule suexec_module modules/mod_suexec.so
|
|
|
200 |
LoadModule disk_cache_module modules/mod_disk_cache.so
|
|
|
201 |
LoadModule cgi_module modules/mod_cgi.so
|
|
|
202 |
LoadModule version_module modules/mod_version.so
|
|
|
203 |
|
|
|
204 |
#
|
|
|
205 |
# The following modules are not loaded by default:
|
|
|
206 |
#
|
|
|
207 |
#LoadModule asis_module modules/mod_asis.so
|
|
|
208 |
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
|
|
|
209 |
#LoadModule cern_meta_module modules/mod_cern_meta.so
|
|
|
210 |
#LoadModule cgid_module modules/mod_cgid.so
|
|
|
211 |
#LoadModule dbd_module modules/mod_dbd.so
|
|
|
212 |
#LoadModule dumpio_module modules/mod_dumpio.so
|
|
|
213 |
#LoadModule filter_module modules/mod_filter.so
|
|
|
214 |
#LoadModule ident_module modules/mod_ident.so
|
|
|
215 |
#LoadModule log_forensic_module modules/mod_log_forensic.so
|
|
|
216 |
#LoadModule unique_id_module modules/mod_unique_id.so
|
|
|
217 |
#
|
|
|
218 |
|
|
|
219 |
#
|
|
|
220 |
# Load config files from the config directory "/etc/httpd/conf.d".
|
|
|
221 |
#
|
|
|
222 |
Include conf.d/*.conf
|
|
|
223 |
|
|
|
224 |
#
|
|
|
225 |
# ExtendedStatus controls whether Apache will generate "full" status
|
|
|
226 |
# information (ExtendedStatus On) or just basic information (ExtendedStatus
|
|
|
227 |
# Off) when the "server-status" handler is called. The default is Off.
|
|
|
228 |
#
|
|
|
229 |
#ExtendedStatus On
|
|
|
230 |
|
|
|
231 |
#
|
|
|
232 |
# If you wish httpd to run as a different user or group, you must run
|
|
|
233 |
# httpd as root initially and it will switch.
|
|
|
234 |
#
|
|
|
235 |
# User/Group: The name (or #number) of the user/group to run httpd as.
|
|
|
236 |
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
|
|
|
237 |
# . On HPUX you may not be able to use shared memory as nobody, and the
|
|
|
238 |
# suggested workaround is to create a user www and use that user.
|
|
|
239 |
# NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
|
|
|
240 |
# when the value of (unsigned)Group is above 60000;
|
|
|
241 |
# don't use Group #-1 on these systems!
|
|
|
242 |
#
|
|
|
243 |
User apache
|
|
|
244 |
Group apache
|
|
|
245 |
|
|
|
246 |
### Section 2: 'Main' server configuration
|
|
|
247 |
#
|
|
|
248 |
# The directives in this section set up the values used by the 'main'
|
|
|
249 |
# server, which responds to any requests that aren't handled by a
|
|
|
250 |
# <VirtualHost> definition. These values also provide defaults for
|
|
|
251 |
# any <VirtualHost> containers you may define later in the file.
|
|
|
252 |
#
|
|
|
253 |
# All of these directives may appear inside <VirtualHost> containers,
|
|
|
254 |
# in which case these default settings will be overridden for the
|
|
|
255 |
# virtual host being defined.
|
|
|
256 |
#
|
|
|
257 |
|
|
|
258 |
#
|
|
|
259 |
# ServerAdmin: Your address, where problems with the server should be
|
|
|
260 |
# e-mailed. This address appears on some server-generated pages, such
|
|
|
261 |
# as error documents. e.g. admin@your-domain.com
|
|
|
262 |
#
|
|
|
263 |
ServerAdmin root@localhost
|
|
|
264 |
|
|
|
265 |
#
|
|
|
266 |
# ServerName gives the name and port that the server uses to identify itself.
|
|
|
267 |
# This can often be determined automatically, but we recommend you specify
|
|
|
268 |
# it explicitly to prevent problems during startup.
|
|
|
269 |
#
|
|
|
270 |
# If this is not set to valid DNS name for your host, server-generated
|
|
|
271 |
# redirections will not work. See also the UseCanonicalName directive.
|
|
|
272 |
#
|
|
|
273 |
# If your host doesn't have a registered DNS name, enter its IP address here.
|
|
|
274 |
# You will have to access it by its address anyway, and this will make
|
|
|
275 |
# redirections work in a sensible way.
|
|
|
276 |
#
|
|
|
277 |
#ServerName www.example.com:80
|
132 |
- |
278 |
#ServerName www.ujsoftware.com:80
|
|
|
279 |
ServerName www.ujsoftware.linkpc.net:80
|
4 |
- |
280 |
|
|
|
281 |
#
|
|
|
282 |
# UseCanonicalName: Determines how Apache constructs self-referencing
|
|
|
283 |
# URLs and the SERVER_NAME and SERVER_PORT variables.
|
|
|
284 |
# When set "Off", Apache will use the Hostname and Port supplied
|
|
|
285 |
# by the client. When set "On", Apache will use the value of the
|
|
|
286 |
# ServerName directive.
|
|
|
287 |
#
|
|
|
288 |
UseCanonicalName Off
|
|
|
289 |
|
|
|
290 |
#
|
|
|
291 |
# DocumentRoot: The directory out of which you will serve your
|
|
|
292 |
# documents. By default, all requests are taken from this directory, but
|
|
|
293 |
# symbolic links and aliases may be used to point to other locations.
|
|
|
294 |
#
|
|
|
295 |
DocumentRoot "/var/www/html"
|
|
|
296 |
|
|
|
297 |
#
|
|
|
298 |
# Each directory to which Apache has access can be configured with respect
|
|
|
299 |
# to which services and features are allowed and/or disabled in that
|
|
|
300 |
# directory (and its subdirectories).
|
|
|
301 |
#
|
|
|
302 |
# First, we configure the "default" to be a very restrictive set of
|
|
|
303 |
# features.
|
|
|
304 |
#
|
|
|
305 |
<Directory />
|
|
|
306 |
Options FollowSymLinks
|
|
|
307 |
AllowOverride None
|
|
|
308 |
</Directory>
|
|
|
309 |
|
|
|
310 |
#
|
|
|
311 |
# Note that from this point forward you must specifically allow
|
|
|
312 |
# particular features to be enabled - so if something's not working as
|
|
|
313 |
# you might expect, make sure that you have specifically enabled it
|
|
|
314 |
# below.
|
|
|
315 |
#
|
|
|
316 |
|
|
|
317 |
#
|
|
|
318 |
# This should be changed to whatever you set DocumentRoot to.
|
|
|
319 |
#
|
|
|
320 |
<Directory "/var/www/html">
|
|
|
321 |
|
|
|
322 |
#
|
|
|
323 |
# Possible values for the Options directive are "None", "All",
|
|
|
324 |
# or any combination of:
|
|
|
325 |
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
|
|
|
326 |
#
|
|
|
327 |
# Note that "MultiViews" must be named *explicitly* --- "Options All"
|
|
|
328 |
# doesn't give it to you.
|
|
|
329 |
#
|
|
|
330 |
# The Options directive is both complicated and important. Please see
|
|
|
331 |
# http://httpd.apache.org/docs/2.2/mod/core.html#options
|
|
|
332 |
# for more information.
|
|
|
333 |
#
|
|
|
334 |
Options Indexes FollowSymLinks
|
|
|
335 |
|
|
|
336 |
#
|
|
|
337 |
# AllowOverride controls what directives may be placed in .htaccess files.
|
|
|
338 |
# It can be "All", "None", or any combination of the keywords:
|
|
|
339 |
# Options FileInfo AuthConfig Limit
|
|
|
340 |
#
|
|
|
341 |
AllowOverride None
|
|
|
342 |
|
|
|
343 |
#
|
|
|
344 |
# Controls who can get stuff from this server.
|
|
|
345 |
#
|
|
|
346 |
Order allow,deny
|
|
|
347 |
Allow from all
|
|
|
348 |
|
|
|
349 |
</Directory>
|
|
|
350 |
|
|
|
351 |
#
|
|
|
352 |
# UserDir: The name of the directory that is appended onto a user's home
|
|
|
353 |
# directory if a ~user request is received.
|
|
|
354 |
#
|
|
|
355 |
# The path to the end user account 'public_html' directory must be
|
|
|
356 |
# accessible to the webserver userid. This usually means that ~userid
|
|
|
357 |
# must have permissions of 711, ~userid/public_html must have permissions
|
|
|
358 |
# of 755, and documents contained therein must be world-readable.
|
|
|
359 |
# Otherwise, the client will only receive a "403 Forbidden" message.
|
|
|
360 |
#
|
|
|
361 |
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
|
|
|
362 |
#
|
|
|
363 |
<IfModule mod_userdir.c>
|
|
|
364 |
#
|
|
|
365 |
# UserDir is disabled by default since it can confirm the presence
|
|
|
366 |
# of a username on the system (depending on home directory
|
|
|
367 |
# permissions).
|
|
|
368 |
#
|
|
|
369 |
UserDir disabled
|
|
|
370 |
|
|
|
371 |
#
|
|
|
372 |
# To enable requests to /~user/ to serve the user's public_html
|
|
|
373 |
# directory, remove the "UserDir disabled" line above, and uncomment
|
|
|
374 |
# the following line instead:
|
|
|
375 |
#
|
|
|
376 |
#UserDir public_html
|
|
|
377 |
|
|
|
378 |
</IfModule>
|
|
|
379 |
|
|
|
380 |
#
|
|
|
381 |
# Control access to UserDir directories. The following is an example
|
|
|
382 |
# for a site where these directories are restricted to read-only.
|
|
|
383 |
#
|
|
|
384 |
#<Directory /home/*/public_html>
|
|
|
385 |
# AllowOverride FileInfo AuthConfig Limit
|
|
|
386 |
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
|
|
|
387 |
# <Limit GET POST OPTIONS>
|
|
|
388 |
# Order allow,deny
|
|
|
389 |
# Allow from all
|
|
|
390 |
# </Limit>
|
|
|
391 |
# <LimitExcept GET POST OPTIONS>
|
|
|
392 |
# Order deny,allow
|
|
|
393 |
# Deny from all
|
|
|
394 |
# </LimitExcept>
|
|
|
395 |
#</Directory>
|
|
|
396 |
|
|
|
397 |
#
|
|
|
398 |
# DirectoryIndex: sets the file that Apache will serve if a directory
|
|
|
399 |
# is requested.
|
|
|
400 |
#
|
|
|
401 |
# The index.html.var file (a type-map) is used to deliver content-
|
|
|
402 |
# negotiated documents. The MultiViews Option can be used for the
|
|
|
403 |
# same purpose, but it is much slower.
|
|
|
404 |
#
|
|
|
405 |
DirectoryIndex index.html index.html.var
|
|
|
406 |
|
|
|
407 |
#
|
|
|
408 |
# AccessFileName: The name of the file to look for in each directory
|
|
|
409 |
# for additional configuration directives. See also the AllowOverride
|
|
|
410 |
# directive.
|
|
|
411 |
#
|
|
|
412 |
AccessFileName .htaccess
|
|
|
413 |
|
|
|
414 |
#
|
|
|
415 |
# The following lines prevent .htaccess and .htpasswd files from being
|
|
|
416 |
# viewed by Web clients.
|
|
|
417 |
#
|
|
|
418 |
<Files ~ "^\.ht">
|
|
|
419 |
Order allow,deny
|
|
|
420 |
Deny from all
|
|
|
421 |
Satisfy All
|
|
|
422 |
</Files>
|
|
|
423 |
|
|
|
424 |
#
|
|
|
425 |
# TypesConfig describes where the mime.types file (or equivalent) is
|
|
|
426 |
# to be found.
|
|
|
427 |
#
|
|
|
428 |
TypesConfig /etc/mime.types
|
|
|
429 |
|
|
|
430 |
#
|
|
|
431 |
# DefaultType is the default MIME type the server will use for a document
|
|
|
432 |
# if it cannot otherwise determine one, such as from filename extensions.
|
|
|
433 |
# If your server contains mostly text or HTML documents, "text/plain" is
|
|
|
434 |
# a good value. If most of your content is binary, such as applications
|
|
|
435 |
# or images, you may want to use "application/octet-stream" instead to
|
|
|
436 |
# keep browsers from trying to display binary files as though they are
|
|
|
437 |
# text.
|
|
|
438 |
#
|
|
|
439 |
DefaultType text/plain
|
|
|
440 |
|
|
|
441 |
#
|
|
|
442 |
# The mod_mime_magic module allows the server to use various hints from the
|
|
|
443 |
# contents of the file itself to determine its type. The MIMEMagicFile
|
|
|
444 |
# directive tells the module where the hint definitions are located.
|
|
|
445 |
#
|
|
|
446 |
<IfModule mod_mime_magic.c>
|
|
|
447 |
# MIMEMagicFile /usr/share/magic.mime
|
|
|
448 |
MIMEMagicFile conf/magic
|
|
|
449 |
</IfModule>
|
|
|
450 |
|
|
|
451 |
#
|
|
|
452 |
# HostnameLookups: Log the names of clients or just their IP addresses
|
|
|
453 |
# e.g., www.apache.org (on) or 204.62.129.132 (off).
|
|
|
454 |
# The default is off because it'd be overall better for the net if people
|
|
|
455 |
# had to knowingly turn this feature on, since enabling it means that
|
|
|
456 |
# each client request will result in AT LEAST one lookup request to the
|
|
|
457 |
# nameserver.
|
|
|
458 |
#
|
|
|
459 |
HostnameLookups Off
|
|
|
460 |
|
|
|
461 |
#
|
|
|
462 |
# EnableMMAP: Control whether memory-mapping is used to deliver
|
|
|
463 |
# files (assuming that the underlying OS supports it).
|
|
|
464 |
# The default is on; turn this off if you serve from NFS-mounted
|
|
|
465 |
# filesystems. On some systems, turning it off (regardless of
|
|
|
466 |
# filesystem) can improve performance; for details, please see
|
|
|
467 |
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
|
|
|
468 |
#
|
|
|
469 |
#EnableMMAP off
|
|
|
470 |
|
|
|
471 |
#
|
|
|
472 |
# EnableSendfile: Control whether the sendfile kernel support is
|
|
|
473 |
# used to deliver files (assuming that the OS supports it).
|
|
|
474 |
# The default is on; turn this off if you serve from NFS-mounted
|
|
|
475 |
# filesystems. Please see
|
|
|
476 |
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
|
|
|
477 |
#
|
|
|
478 |
#EnableSendfile off
|
|
|
479 |
|
|
|
480 |
#
|
|
|
481 |
# ErrorLog: The location of the error log file.
|
|
|
482 |
# If you do not specify an ErrorLog directive within a <VirtualHost>
|
|
|
483 |
# container, error messages relating to that virtual host will be
|
|
|
484 |
# logged here. If you *do* define an error logfile for a <VirtualHost>
|
|
|
485 |
# container, that host's errors will be logged there and not here.
|
|
|
486 |
#
|
|
|
487 |
ErrorLog logs/error_log
|
|
|
488 |
|
|
|
489 |
#
|
|
|
490 |
# LogLevel: Control the number of messages logged to the error_log.
|
|
|
491 |
# Possible values include: debug, info, notice, warn, error, crit,
|
|
|
492 |
# alert, emerg.
|
|
|
493 |
#
|
|
|
494 |
LogLevel warn
|
|
|
495 |
|
|
|
496 |
#
|
|
|
497 |
# The following directives define some format nicknames for use with
|
|
|
498 |
# a CustomLog directive (see below).
|
|
|
499 |
#
|
|
|
500 |
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
|
|
501 |
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
|
|
502 |
LogFormat "%{Referer}i -> %U" referer
|
|
|
503 |
LogFormat "%{User-agent}i" agent
|
|
|
504 |
|
|
|
505 |
# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
|
|
|
506 |
# requires the mod_logio module to be loaded.
|
|
|
507 |
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
|
|
|
508 |
|
|
|
509 |
#
|
|
|
510 |
# The location and format of the access logfile (Common Logfile Format).
|
|
|
511 |
# If you do not define any access logfiles within a <VirtualHost>
|
|
|
512 |
# container, they will be logged here. Contrariwise, if you *do*
|
|
|
513 |
# define per-<VirtualHost> access logfiles, transactions will be
|
|
|
514 |
# logged therein and *not* in this file.
|
|
|
515 |
#
|
|
|
516 |
#CustomLog logs/access_log common
|
|
|
517 |
|
|
|
518 |
#
|
|
|
519 |
# If you would like to have separate agent and referer logfiles, uncomment
|
|
|
520 |
# the following directives.
|
|
|
521 |
#
|
|
|
522 |
#CustomLog logs/referer_log referer
|
|
|
523 |
#CustomLog logs/agent_log agent
|
|
|
524 |
|
|
|
525 |
#
|
|
|
526 |
# For a single logfile with access, agent, and referer information
|
|
|
527 |
# (Combined Logfile Format), use the following directive:
|
|
|
528 |
#
|
|
|
529 |
CustomLog logs/access_log combined
|
|
|
530 |
|
|
|
531 |
#
|
|
|
532 |
# Optionally add a line containing the server version and virtual host
|
|
|
533 |
# name to server-generated pages (internal error documents, FTP directory
|
|
|
534 |
# listings, mod_status and mod_info output etc., but not CGI generated
|
|
|
535 |
# documents or custom error documents).
|
|
|
536 |
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
|
|
|
537 |
# Set to one of: On | Off | EMail
|
|
|
538 |
#
|
146 |
- |
539 |
ServerSignature Off
|
4 |
- |
540 |
|
|
|
541 |
#
|
|
|
542 |
# Aliases: Add here as many aliases as you need (with no limit). The format is
|
|
|
543 |
# Alias fakename realname
|
|
|
544 |
#
|
|
|
545 |
# Note that if you include a trailing / on fakename then the server will
|
|
|
546 |
# require it to be present in the URL. So "/icons" isn't aliased in this
|
|
|
547 |
# example, only "/icons/". If the fakename is slash-terminated, then the
|
|
|
548 |
# realname must also be slash terminated, and if the fakename omits the
|
|
|
549 |
# trailing slash, the realname must also omit it.
|
|
|
550 |
#
|
|
|
551 |
# We include the /icons/ alias for FancyIndexed directory listings. If you
|
|
|
552 |
# do not use FancyIndexing, you may comment this out.
|
|
|
553 |
#
|
|
|
554 |
Alias /icons/ "/var/www/icons/"
|
|
|
555 |
|
|
|
556 |
<Directory "/var/www/icons">
|
|
|
557 |
Options Indexes MultiViews FollowSymLinks
|
|
|
558 |
AllowOverride None
|
|
|
559 |
Order allow,deny
|
|
|
560 |
Allow from all
|
|
|
561 |
</Directory>
|
|
|
562 |
|
|
|
563 |
#
|
|
|
564 |
# WebDAV module configuration section.
|
|
|
565 |
#
|
|
|
566 |
<IfModule mod_dav_fs.c>
|
|
|
567 |
# Location of the WebDAV lock database.
|
|
|
568 |
DAVLockDB /var/lib/dav/lockdb
|
|
|
569 |
</IfModule>
|
|
|
570 |
|
|
|
571 |
#
|
|
|
572 |
# ScriptAlias: This controls which directories contain server scripts.
|
|
|
573 |
# ScriptAliases are essentially the same as Aliases, except that
|
|
|
574 |
# documents in the realname directory are treated as applications and
|
|
|
575 |
# run by the server when requested rather than as documents sent to the client.
|
|
|
576 |
# The same rules about trailing "/" apply to ScriptAlias directives as to
|
|
|
577 |
# Alias.
|
|
|
578 |
#
|
|
|
579 |
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
|
|
|
580 |
|
|
|
581 |
#
|
|
|
582 |
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
|
|
|
583 |
# CGI directory exists, if you have that configured.
|
|
|
584 |
#
|
|
|
585 |
<Directory "/var/www/cgi-bin">
|
|
|
586 |
AllowOverride None
|
|
|
587 |
Options None
|
|
|
588 |
Order allow,deny
|
|
|
589 |
Allow from all
|
|
|
590 |
</Directory>
|
|
|
591 |
|
|
|
592 |
#
|
|
|
593 |
# Redirect allows you to tell clients about documents which used to exist in
|
|
|
594 |
# your server's namespace, but do not anymore. This allows you to tell the
|
|
|
595 |
# clients where to look for the relocated document.
|
|
|
596 |
# Example:
|
|
|
597 |
# Redirect permanent /foo http://www.example.com/bar
|
|
|
598 |
|
|
|
599 |
#
|
|
|
600 |
# Directives controlling the display of server-generated directory listings.
|
|
|
601 |
#
|
|
|
602 |
|
|
|
603 |
#
|
|
|
604 |
# IndexOptions: Controls the appearance of server-generated directory
|
|
|
605 |
# listings.
|
|
|
606 |
#
|
|
|
607 |
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
|
|
|
608 |
|
|
|
609 |
#
|
|
|
610 |
# AddIcon* directives tell the server which icon to show for different
|
|
|
611 |
# files or filename extensions. These are only displayed for
|
|
|
612 |
# FancyIndexed directories.
|
|
|
613 |
#
|
|
|
614 |
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
|
|
|
615 |
|
|
|
616 |
AddIconByType (TXT,/icons/text.gif) text/*
|
|
|
617 |
AddIconByType (IMG,/icons/image2.gif) image/*
|
|
|
618 |
AddIconByType (SND,/icons/sound2.gif) audio/*
|
|
|
619 |
AddIconByType (VID,/icons/movie.gif) video/*
|
|
|
620 |
|
|
|
621 |
AddIcon /icons/binary.gif .bin .exe
|
|
|
622 |
AddIcon /icons/binhex.gif .hqx
|
|
|
623 |
AddIcon /icons/tar.gif .tar
|
|
|
624 |
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
|
|
|
625 |
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
|
|
|
626 |
AddIcon /icons/a.gif .ps .ai .eps
|
|
|
627 |
AddIcon /icons/layout.gif .html .shtml .htm .pdf
|
|
|
628 |
AddIcon /icons/text.gif .txt
|
|
|
629 |
AddIcon /icons/c.gif .c
|
|
|
630 |
AddIcon /icons/p.gif .pl .py
|
|
|
631 |
AddIcon /icons/f.gif .for
|
|
|
632 |
AddIcon /icons/dvi.gif .dvi
|
|
|
633 |
AddIcon /icons/uuencoded.gif .uu
|
|
|
634 |
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
|
|
|
635 |
AddIcon /icons/tex.gif .tex
|
34 |
- |
636 |
AddIcon /icons/bomb.gif /core
|
4 |
- |
637 |
|
|
|
638 |
AddIcon /icons/back.gif ..
|
|
|
639 |
AddIcon /icons/hand.right.gif README
|
|
|
640 |
AddIcon /icons/folder.gif ^^DIRECTORY^^
|
|
|
641 |
AddIcon /icons/blank.gif ^^BLANKICON^^
|
|
|
642 |
|
|
|
643 |
#
|
|
|
644 |
# DefaultIcon is which icon to show for files which do not have an icon
|
|
|
645 |
# explicitly set.
|
|
|
646 |
#
|
|
|
647 |
DefaultIcon /icons/unknown.gif
|
|
|
648 |
|
|
|
649 |
#
|
|
|
650 |
# AddDescription allows you to place a short description after a file in
|
|
|
651 |
# server-generated indexes. These are only displayed for FancyIndexed
|
|
|
652 |
# directories.
|
|
|
653 |
# Format: AddDescription "description" filename
|
|
|
654 |
#
|
|
|
655 |
#AddDescription "GZIP compressed document" .gz
|
|
|
656 |
#AddDescription "tar archive" .tar
|
|
|
657 |
#AddDescription "GZIP compressed tar archive" .tgz
|
|
|
658 |
|
|
|
659 |
#
|
|
|
660 |
# ReadmeName is the name of the README file the server will look for by
|
|
|
661 |
# default, and append to directory listings.
|
|
|
662 |
#
|
|
|
663 |
# HeaderName is the name of a file which should be prepended to
|
|
|
664 |
# directory indexes.
|
|
|
665 |
ReadmeName README.html
|
|
|
666 |
HeaderName HEADER.html
|
|
|
667 |
|
|
|
668 |
#
|
|
|
669 |
# IndexIgnore is a set of filenames which directory indexing should ignore
|
|
|
670 |
# and not include in the listing. Shell-style wildcarding is permitted.
|
|
|
671 |
#
|
|
|
672 |
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
|
|
|
673 |
|
|
|
674 |
#
|
|
|
675 |
# DefaultLanguage and AddLanguage allows you to specify the language of
|
|
|
676 |
# a document. You can then use content negotiation to give a browser a
|
|
|
677 |
# file in a language the user can understand.
|
|
|
678 |
#
|
|
|
679 |
# Specify a default language. This means that all data
|
|
|
680 |
# going out without a specific language tag (see below) will
|
|
|
681 |
# be marked with this one. You probably do NOT want to set
|
|
|
682 |
# this unless you are sure it is correct for all cases.
|
|
|
683 |
#
|
|
|
684 |
# * It is generally better to not mark a page as
|
|
|
685 |
# * being a certain language than marking it with the wrong
|
|
|
686 |
# * language!
|
|
|
687 |
#
|
|
|
688 |
# DefaultLanguage nl
|
|
|
689 |
#
|
|
|
690 |
# Note 1: The suffix does not have to be the same as the language
|
|
|
691 |
# keyword --- those with documents in Polish (whose net-standard
|
|
|
692 |
# language code is pl) may wish to use "AddLanguage pl .po" to
|
|
|
693 |
# avoid the ambiguity with the common suffix for perl scripts.
|
|
|
694 |
#
|
|
|
695 |
# Note 2: The example entries below illustrate that in some cases
|
|
|
696 |
# the two character 'Language' abbreviation is not identical to
|
|
|
697 |
# the two character 'Country' code for its country,
|
|
|
698 |
# E.g. 'Danmark/dk' versus 'Danish/da'.
|
|
|
699 |
#
|
|
|
700 |
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
|
|
|
701 |
# specifier. There is 'work in progress' to fix this and get
|
|
|
702 |
# the reference data for rfc1766 cleaned up.
|
|
|
703 |
#
|
|
|
704 |
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
|
|
|
705 |
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
|
|
|
706 |
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
|
|
|
707 |
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
|
|
|
708 |
# Norwegian (no) - Polish (pl) - Portugese (pt)
|
|
|
709 |
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
|
|
|
710 |
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
|
|
|
711 |
#
|
|
|
712 |
AddLanguage ca .ca
|
|
|
713 |
AddLanguage cs .cz .cs
|
|
|
714 |
AddLanguage da .dk
|
|
|
715 |
AddLanguage de .de
|
|
|
716 |
AddLanguage el .el
|
|
|
717 |
AddLanguage en .en
|
|
|
718 |
AddLanguage eo .eo
|
|
|
719 |
AddLanguage es .es
|
|
|
720 |
AddLanguage et .et
|
|
|
721 |
AddLanguage fr .fr
|
|
|
722 |
AddLanguage he .he
|
|
|
723 |
AddLanguage hr .hr
|
|
|
724 |
AddLanguage it .it
|
|
|
725 |
AddLanguage ja .ja
|
|
|
726 |
AddLanguage ko .ko
|
|
|
727 |
AddLanguage ltz .ltz
|
|
|
728 |
AddLanguage nl .nl
|
|
|
729 |
AddLanguage nn .nn
|
|
|
730 |
AddLanguage no .no
|
|
|
731 |
AddLanguage pl .po
|
|
|
732 |
AddLanguage pt .pt
|
|
|
733 |
AddLanguage pt-BR .pt-br
|
|
|
734 |
AddLanguage ru .ru
|
|
|
735 |
AddLanguage sv .sv
|
|
|
736 |
AddLanguage zh-CN .zh-cn
|
|
|
737 |
AddLanguage zh-TW .zh-tw
|
|
|
738 |
|
|
|
739 |
#
|
|
|
740 |
# LanguagePriority allows you to give precedence to some languages
|
|
|
741 |
# in case of a tie during content negotiation.
|
|
|
742 |
#
|
|
|
743 |
# Just list the languages in decreasing order of preference. We have
|
|
|
744 |
# more or less alphabetized them here. You probably want to change this.
|
|
|
745 |
#
|
|
|
746 |
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
|
|
|
747 |
|
|
|
748 |
#
|
|
|
749 |
# ForceLanguagePriority allows you to serve a result page rather than
|
|
|
750 |
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
|
|
|
751 |
# [in case no accepted languages matched the available variants]
|
|
|
752 |
#
|
|
|
753 |
ForceLanguagePriority Prefer Fallback
|
|
|
754 |
|
|
|
755 |
#
|
|
|
756 |
# Specify a default charset for all content served; this enables
|
|
|
757 |
# interpretation of all content as UTF-8 by default. To use the
|
|
|
758 |
# default browser choice (ISO-8859-1), or to allow the META tags
|
|
|
759 |
# in HTML content to override this choice, comment out this
|
|
|
760 |
# directive:
|
|
|
761 |
#
|
|
|
762 |
AddDefaultCharset UTF-8
|
|
|
763 |
|
|
|
764 |
#
|
|
|
765 |
# AddType allows you to add to or override the MIME configuration
|
|
|
766 |
# file mime.types for specific file types.
|
|
|
767 |
#
|
|
|
768 |
#AddType application/x-tar .tgz
|
|
|
769 |
|
|
|
770 |
#
|
|
|
771 |
# AddEncoding allows you to have certain browsers uncompress
|
|
|
772 |
# information on the fly. Note: Not all browsers support this.
|
|
|
773 |
# Despite the name similarity, the following Add* directives have nothing
|
|
|
774 |
# to do with the FancyIndexing customization directives above.
|
|
|
775 |
#
|
|
|
776 |
#AddEncoding x-compress .Z
|
|
|
777 |
#AddEncoding x-gzip .gz .tgz
|
|
|
778 |
|
|
|
779 |
# If the AddEncoding directives above are commented-out, then you
|
|
|
780 |
# probably should define those extensions to indicate media types:
|
|
|
781 |
#
|
|
|
782 |
AddType application/x-compress .Z
|
|
|
783 |
AddType application/x-gzip .gz .tgz
|
|
|
784 |
|
|
|
785 |
#
|
|
|
786 |
# MIME-types for downloading Certificates and CRLs
|
|
|
787 |
#
|
|
|
788 |
AddType application/x-x509-ca-cert .crt
|
|
|
789 |
AddType application/x-pkcs7-crl .crl
|
|
|
790 |
|
|
|
791 |
#
|
|
|
792 |
# AddHandler allows you to map certain file extensions to "handlers":
|
|
|
793 |
# actions unrelated to filetype. These can be either built into the server
|
|
|
794 |
# or added with the Action directive (see below)
|
|
|
795 |
#
|
|
|
796 |
# To use CGI scripts outside of ScriptAliased directories:
|
|
|
797 |
# (You will also need to add "ExecCGI" to the "Options" directive.)
|
|
|
798 |
#
|
|
|
799 |
#AddHandler cgi-script .cgi
|
|
|
800 |
|
|
|
801 |
#
|
|
|
802 |
# For files that include their own HTTP headers:
|
|
|
803 |
#
|
|
|
804 |
#AddHandler send-as-is asis
|
|
|
805 |
|
|
|
806 |
#
|
|
|
807 |
# For type maps (negotiated resources):
|
|
|
808 |
# (This is enabled by default to allow the Apache "It Worked" page
|
|
|
809 |
# to be distributed in multiple languages.)
|
|
|
810 |
#
|
|
|
811 |
AddHandler type-map var
|
|
|
812 |
|
|
|
813 |
#
|
|
|
814 |
# Filters allow you to process content before it is sent to the client.
|
|
|
815 |
#
|
|
|
816 |
# To parse .shtml files for server-side includes (SSI):
|
|
|
817 |
# (You will also need to add "Includes" to the "Options" directive.)
|
|
|
818 |
#
|
|
|
819 |
AddType text/html .shtml
|
|
|
820 |
AddOutputFilter INCLUDES .shtml
|
|
|
821 |
|
|
|
822 |
#
|
|
|
823 |
# Action lets you define media types that will execute a script whenever
|
|
|
824 |
# a matching file is called. This eliminates the need for repeated URL
|
|
|
825 |
# pathnames for oft-used CGI file processors.
|
|
|
826 |
# Format: Action media/type /cgi-script/location
|
|
|
827 |
# Format: Action handler-name /cgi-script/location
|
|
|
828 |
#
|
|
|
829 |
|
|
|
830 |
#
|
|
|
831 |
# Customizable error responses come in three flavors:
|
|
|
832 |
# 1) plain text 2) local redirects 3) external redirects
|
|
|
833 |
#
|
|
|
834 |
# Some examples:
|
|
|
835 |
#ErrorDocument 500 "The server made a boo boo."
|
|
|
836 |
#ErrorDocument 404 /missing.html
|
|
|
837 |
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
|
|
|
838 |
#ErrorDocument 402 http://www.example.com/subscription_info.html
|
|
|
839 |
#
|
|
|
840 |
|
|
|
841 |
#
|
|
|
842 |
# Putting this all together, we can internationalize error responses.
|
|
|
843 |
#
|
|
|
844 |
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
|
|
|
845 |
# our collection of by-error message multi-language collections. We use
|
|
|
846 |
# includes to substitute the appropriate text.
|
|
|
847 |
#
|
|
|
848 |
# You can modify the messages' appearance without changing any of the
|
|
|
849 |
# default HTTP_<error>.html.var files by adding the line:
|
|
|
850 |
#
|
|
|
851 |
# Alias /error/include/ "/your/include/path/"
|
|
|
852 |
#
|
|
|
853 |
# which allows you to create your own set of files by starting with the
|
|
|
854 |
# /var/www/error/include/ files and
|
|
|
855 |
# copying them to /your/include/path/, even on a per-VirtualHost basis.
|
|
|
856 |
#
|
|
|
857 |
|
|
|
858 |
Alias /error/ "/var/www/error/"
|
|
|
859 |
|
|
|
860 |
<IfModule mod_negotiation.c>
|
|
|
861 |
<IfModule mod_include.c>
|
|
|
862 |
<Directory "/var/www/error">
|
|
|
863 |
AllowOverride None
|
|
|
864 |
Options IncludesNoExec
|
|
|
865 |
AddOutputFilter Includes html
|
|
|
866 |
AddHandler type-map var
|
|
|
867 |
Order allow,deny
|
|
|
868 |
Allow from all
|
|
|
869 |
LanguagePriority en es de fr
|
|
|
870 |
ForceLanguagePriority Prefer Fallback
|
|
|
871 |
</Directory>
|
|
|
872 |
|
|
|
873 |
# ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
|
|
|
874 |
# ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
|
|
|
875 |
# ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
|
|
|
876 |
# ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
|
|
|
877 |
# ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
|
|
|
878 |
# ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
|
|
|
879 |
# ErrorDocument 410 /error/HTTP_GONE.html.var
|
|
|
880 |
# ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
|
|
|
881 |
# ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
|
|
|
882 |
# ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
|
|
|
883 |
# ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
|
|
|
884 |
# ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
|
|
|
885 |
# ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
|
|
|
886 |
# ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
|
|
|
887 |
# ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
|
|
|
888 |
# ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
|
|
|
889 |
# ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
|
|
|
890 |
|
|
|
891 |
</IfModule>
|
|
|
892 |
</IfModule>
|
|
|
893 |
|
|
|
894 |
#
|
|
|
895 |
# The following directives modify normal HTTP response behavior to
|
|
|
896 |
# handle known problems with browser implementations.
|
|
|
897 |
#
|
|
|
898 |
BrowserMatch "Mozilla/2" nokeepalive
|
|
|
899 |
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
|
|
|
900 |
BrowserMatch "RealPlayer 4\.0" force-response-1.0
|
|
|
901 |
BrowserMatch "Java/1\.0" force-response-1.0
|
|
|
902 |
BrowserMatch "JDK/1\.0" force-response-1.0
|
|
|
903 |
|
|
|
904 |
#
|
|
|
905 |
# The following directive disables redirects on non-GET requests for
|
|
|
906 |
# a directory that does not include the trailing slash. This fixes a
|
|
|
907 |
# problem with Microsoft WebFolders which does not appropriately handle
|
|
|
908 |
# redirects for folders with DAV methods.
|
|
|
909 |
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
|
|
|
910 |
#
|
|
|
911 |
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
|
|
|
912 |
BrowserMatch "MS FrontPage" redirect-carefully
|
|
|
913 |
BrowserMatch "^WebDrive" redirect-carefully
|
|
|
914 |
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
|
|
|
915 |
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
|
|
|
916 |
BrowserMatch "^XML Spy" redirect-carefully
|
|
|
917 |
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
|
|
|
918 |
|
|
|
919 |
#
|
|
|
920 |
# Allow server status reports generated by mod_status,
|
|
|
921 |
# with the URL of http://servername/server-status
|
|
|
922 |
# Change the ".example.com" to match your domain to enable.
|
|
|
923 |
#
|
|
|
924 |
#<Location /server-status>
|
|
|
925 |
# SetHandler server-status
|
|
|
926 |
# Order deny,allow
|
|
|
927 |
# Deny from all
|
|
|
928 |
# Allow from .example.com
|
|
|
929 |
#</Location>
|
|
|
930 |
|
|
|
931 |
#
|
|
|
932 |
# Allow remote server configuration reports, with the URL of
|
|
|
933 |
# http://servername/server-info (requires that mod_info.c be loaded).
|
|
|
934 |
# Change the ".example.com" to match your domain to enable.
|
|
|
935 |
#
|
|
|
936 |
#<Location /server-info>
|
|
|
937 |
# SetHandler server-info
|
|
|
938 |
# Order deny,allow
|
|
|
939 |
# Deny from all
|
|
|
940 |
# Allow from .example.com
|
|
|
941 |
#</Location>
|
|
|
942 |
|
|
|
943 |
#
|
|
|
944 |
# Proxy Server directives. Uncomment the following lines to
|
|
|
945 |
# enable the proxy server:
|
|
|
946 |
#
|
|
|
947 |
#<IfModule mod_proxy.c>
|
|
|
948 |
#ProxyRequests On
|
|
|
949 |
#
|
|
|
950 |
#<Proxy *>
|
|
|
951 |
# Order deny,allow
|
|
|
952 |
# Deny from all
|
|
|
953 |
# Allow from .example.com
|
|
|
954 |
#</Proxy>
|
|
|
955 |
|
|
|
956 |
#
|
|
|
957 |
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
|
|
|
958 |
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
|
|
|
959 |
# Set to one of: Off | On | Full | Block
|
|
|
960 |
#
|
|
|
961 |
#ProxyVia On
|
|
|
962 |
|
|
|
963 |
#
|
|
|
964 |
# To enable a cache of proxied content, uncomment the following lines.
|
|
|
965 |
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
|
|
|
966 |
#
|
|
|
967 |
#<IfModule mod_disk_cache.c>
|
|
|
968 |
# CacheEnable disk /
|
|
|
969 |
# CacheRoot "/var/cache/mod_proxy"
|
|
|
970 |
#</IfModule>
|
|
|
971 |
#
|
|
|
972 |
|
|
|
973 |
#</IfModule>
|
|
|
974 |
# End of proxy directives.
|
|
|
975 |
|
|
|
976 |
### Section 3: Virtual Hosts
|
|
|
977 |
#
|
|
|
978 |
# VirtualHost: If you want to maintain multiple domains/hostnames on your
|
|
|
979 |
# machine you can setup VirtualHost containers for them. Most configurations
|
|
|
980 |
# use only name-based virtual hosts so the server doesn't need to worry about
|
|
|
981 |
# IP addresses. This is indicated by the asterisks in the directives below.
|
|
|
982 |
#
|
|
|
983 |
# Please see the documentation at
|
|
|
984 |
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
|
|
|
985 |
# for further details before you try to setup virtual hosts.
|
|
|
986 |
#
|
|
|
987 |
# You may use the command line option '-S' to verify your virtual host
|
|
|
988 |
# configuration.
|
|
|
989 |
|
|
|
990 |
#
|
|
|
991 |
# Use name-based virtual hosting.
|
|
|
992 |
#
|
|
|
993 |
#NameVirtualHost *:80
|
|
|
994 |
#
|
|
|
995 |
# NOTE: NameVirtualHost cannot be used without a port specifier
|
|
|
996 |
# (e.g. :80) if mod_ssl is being used, due to the nature of the
|
|
|
997 |
# SSL protocol.
|
|
|
998 |
#
|
|
|
999 |
|
|
|
1000 |
#
|
|
|
1001 |
# VirtualHost example:
|
|
|
1002 |
# Almost any Apache directive may go into a VirtualHost container.
|
|
|
1003 |
# The first VirtualHost section is used for requests without a known
|
|
|
1004 |
# server name.
|
|
|
1005 |
#
|
142 |
- |
1006 |
<VirtualHost *:80>
|
|
|
1007 |
DocumentRoot "/var/www/html"
|
|
|
1008 |
</VirtualHost>
|
|
|
1009 |
|
4 |
- |
1010 |
<Files upsset.cgi>
|
143 |
- |
1011 |
allow from all
|
4 |
- |
1012 |
</Files>
|
|
|
1013 |
|
146 |
- |
1014 |
<Files php_errors.log>
|
|
|
1015 |
Order allow,deny
|
|
|
1016 |
Deny from all
|
|
|
1017 |
Satisfy All
|
|
|
1018 |
</Files>
|
|
|
1019 |
|
4 |
- |
1020 |
Alias "/amavis-stats" "/usr/local/share/amavis-stats/"
|
|
|
1021 |
|
|
|
1022 |
<Directory /usr/local/share/amavis-stats/>
|
|
|
1023 |
Options +FollowSymLinks
|
|
|
1024 |
AllowOverride None
|
|
|
1025 |
order allow,deny
|
|
|
1026 |
allow from all
|
|
|
1027 |
<IfModule mod_expires.c>
|
|
|
1028 |
ExpiresByType image/png M60
|
|
|
1029 |
</IfModule>
|
|
|
1030 |
</Directory>
|
|
|
1031 |
|
|
|
1032 |
Alias "/virusmails" "/var/virusmails/"
|
|
|
1033 |
|
|
|
1034 |
<Directory /var/virusmails/>
|
|
|
1035 |
Options +FollowSymLinks
|
|
|
1036 |
AllowOverride None
|
|
|
1037 |
order allow,deny
|
|
|
1038 |
allow from all
|
|
|
1039 |
<IfModule mod_expires.c>
|
|
|
1040 |
ExpiresByType image/png M60
|
|
|
1041 |
</IfModule>
|
|
|
1042 |
</Directory>
|
|
|
1043 |
|
|
|
1044 |
<IfModule mod_env.c>
|
|
|
1045 |
# Adjust TZ for your server timezone, e.g. EST5EDT - put the non-daylight-savings
|
|
|
1046 |
# timezone code first (e.g. EST or GMT), followed by the number of hours that it's behind GMT
|
|
|
1047 |
# during non-daylight-savings time (use '-5' for timezones in advance of GMT).
|
|
|
1048 |
SetEnv TZ EST5EDT
|
|
|
1049 |
</IfModule>
|
|
|
1050 |
|
|
|
1051 |
Alias /Microsoft-Server-ActiveSync /usr/share/z-push/index.php
|
|
|
1052 |
|
|
|
1053 |
# Include /etc/httpd/conf.d/apcupsd.conf
|
146 |
- |
1054 |
|
|
|
1055 |
TraceEnable off
|
152 |
- |
1056 |
|
|
|
1057 |
<IfModule mod_deflate.c>
|
|
|
1058 |
SetOutputFilter DEFLATE
|
|
|
1059 |
</IfModule>
|