]>
Commit | Line | Data |
---|---|---|
4af76ed4 | 1 | ## |
2 | ## httpd.conf -- Apache HTTP server configuration file | |
3 | ## | |
4 | ||
882960bb | 5 | ##### Global Environment |
4af76ed4 | 6 | # The directives in this section affect the overall operation of Apache, |
882960bb | 7 | # such as the number of concurrent requests it can handle or where it can |
8 | # find its configuration files. | |
9 | ||
10 | ### ServerType | |
11 | # is either inetd, or standalone. Inetd mode is only supported on Unix | |
12 | # platforms. | |
4af76ed4 | 13 | |
4af76ed4 | 14 | ServerType standalone |
15 | ||
882960bb | 16 | ### PidFile |
17 | # The file in which the server should record its process identification | |
18 | # number when it starts. | |
19 | ||
20 | PidFile /var/run/httpd.pid | |
21 | ||
22 | ### Timeout | |
23 | # The number of seconds before receives and sends time out. | |
24 | ### KeepAliveTimeout | |
25 | # Number of seconds to wait for the next request from the same client on the | |
26 | # same connection. | |
27 | ||
28 | Timeout 300 | |
29 | KeepAliveTimeout 15 | |
30 | ||
31 | ### KeepAlive | |
32 | # Whether or not to allow persistent connections (more than one request per | |
33 | # connection). Set to "Off" to deactivate. | |
34 | ### MaxKeepAliveRequests | |
35 | # The maximum number of requests to allow during a persistent connection. | |
36 | # Set to 0 to allow an unlimited amount. We recommend you leave this number | |
37 | # high, for maximum performance. | |
38 | ||
39 | KeepAlive On | |
40 | MaxKeepAliveRequests 100 | |
41 | ||
98393628 | 42 | ### ServerRoot |
43 | # The top of the directory tree under which the server's configuration, | |
44 | # error, and log files are kept. | |
4af76ed4 | 45 | # |
46 | # NOTE! If you intend to place this on an NFS (or otherwise network) | |
47 | # mounted filesystem then please read the LockFile documentation | |
48 | # (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>); | |
49 | # you will save yourself a lot of trouble. | |
50 | # | |
51 | # Do NOT add a slash at the end of the directory path. | |
52 | # | |
53 | ServerRoot "/usr" | |
54 | ||
98393628 | 55 | ### LockFile |
4af76ed4 | 56 | # The LockFile directive sets the path to the lockfile used when Apache |
57 | # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or | |
58 | # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at | |
59 | # its default value. The main reason for changing it is if the logs | |
60 | # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL | |
61 | # DISK. The PID of the main server process is automatically appended to | |
62 | # the filename. | |
63 | # | |
64 | LockFile /var/run/httpd.lock | |
65 | ||
98393628 | 66 | ### ScoreBoardFile |
888bfdde | 67 | # File used to store internal server process information. Not all |
98393628 | 68 | # architectures require this. But if yours does (you'll know because this |
69 | # file will be created when you run Apache) then you *must* ensure that no | |
70 | # two invocations of Apache share the same scoreboard file. | |
71 | ||
4af76ed4 | 72 | ScoreBoardFile /var/run/httpd.scoreboard |
73 | ||
74 | # | |
75 | # In the standard configuration, the server will process this file, | |
76 | # srm.conf, and access.conf in that order. The latter two files are | |
77 | # now distributed empty, as it is recommended that all directives | |
78 | # be kept in a single file for simplicity. The commented-out values | |
79 | # below are the built-in defaults. You can have the server ignore | |
80 | # these files altogether by using "/dev/null" (for Unix) or | |
81 | # "nul" (for Win32) for the arguments to the directives. | |
82 | # | |
c96ad71b | 83 | ResourceConfig /dev/null |
84 | AccessConfig /dev/null | |
4af76ed4 | 85 | |
4af76ed4 | 86 | # |
87 | # Server-pool size regulation. Rather than making you guess how many | |
88 | # server processes you need, Apache dynamically adapts to the load it | |
89 | # sees --- that is, it tries to maintain enough server processes to | |
90 | # handle the current load, plus a few spare servers to handle transient | |
91 | # load spikes (e.g., multiple simultaneous requests from a single | |
92 | # Netscape browser). | |
93 | # | |
94 | # It does this by periodically checking how many servers are waiting | |
95 | # for a request. If there are fewer than MinSpareServers, it creates | |
96 | # a new spare. If there are more than MaxSpareServers, some of the | |
97 | # spares die off. The default values are probably OK for most sites. | |
98 | # | |
99 | MinSpareServers 5 | |
100 | MaxSpareServers 10 | |
101 | ||
102 | # | |
103 | # Number of servers to start initially --- should be a reasonable ballpark | |
104 | # figure. | |
105 | # | |
106 | StartServers 5 | |
107 | ||
108 | # | |
109 | # Limit on total number of servers running, i.e., limit on the number | |
110 | # of clients who can simultaneously connect --- if this limit is ever | |
111 | # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW. | |
112 | # It is intended mainly as a brake to keep a runaway server from taking | |
113 | # the system with it as it spirals down... | |
114 | # | |
115 | MaxClients 150 | |
116 | ||
117 | # | |
118 | # MaxRequestsPerChild: the number of requests each child process is | |
119 | # allowed to process before the child dies. The child will exit so | |
120 | # as to avoid problems after prolonged use when Apache (and maybe the | |
121 | # libraries it uses) leak memory or other resources. On most systems, this | |
122 | # isn't really needed, but a few (such as Solaris) do have notable leaks | |
888bfdde JB |
123 | # in the libraries. For these platforms, set to something like 10000 |
124 | # or so; a setting of 0 means unlimited. | |
4af76ed4 | 125 | # |
888bfdde JB |
126 | # NOTE: This value does not include keepalive requests after the initial |
127 | # request per connection. For example, if a child process handles | |
128 | # an initial request and 10 subsequent "keptalive" requests, it | |
129 | # would only count as 1 request towards this limit. | |
130 | ||
4af76ed4 | 131 | MaxRequestsPerChild 30 |
132 | ||
98393628 | 133 | ### Listen |
134 | # Allows you to bind Apache to specific IP addresses and/or ports, in | |
135 | # addition to the default. See also the <VirtualHost> directive. | |
136 | ||
4af76ed4 | 137 | #Listen 12.34.56.78:80 |
98393628 | 138 | Listen 80 |
139 | ||
888bfdde JB |
140 | # Listen can take two arguments. |
141 | # (this is an extension for supporting IPv6 addresses) | |
142 | #Listen :: 80 | |
143 | #Listen 0.0.0.0 80 | |
144 | ||
98393628 | 145 | ### BindAddress |
146 | # You can support virtual hosts with this option. This directive is used to | |
147 | # tell the server which IP address to listen to. It can either contain "*", | |
148 | # an IP address, or a fully qualified Internet domain name. See also the | |
149 | # <VirtualHost> and Listen directives. | |
4af76ed4 | 150 | |
4af76ed4 | 151 | #BindAddress * |
152 | ||
4af76ed4 | 153 | |
94286b8b | 154 | ### Section 2: Dynamic Shared Object (DSO) Support |
155 | # | |
156 | # Example: | |
157 | # LoadModule foo_module libexec/mod_foo.so | |
158 | ||
159 | # Reconstruction of the complete module list from all available modules | |
160 | # (static and shared ones) to achieve correct module execution order. | |
161 | # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO] | |
162 | ClearModuleList | |
163 | AddModule mod_so.c | |
164 | ||
a6c476d8 | 165 | ### ExtendedStatus |
166 | # controls whether Apache will generate "full" status information | |
167 | # (ExtendedStatus On) or just basic information (ExtendedStatus Off) when | |
168 | # the "server-status" handler is called. The default is Off. | |
169 | ||
170 | #ExtendedStatus On | |
171 | ||
94286b8b | 172 | ### Section 3: 'Main' server configuration |
4af76ed4 | 173 | # |
174 | # The directives in this section set up the values used by the 'main' | |
175 | # server, which responds to any requests that aren't handled by a | |
176 | # <VirtualHost> definition. These values also provide defaults for | |
177 | # any <VirtualHost> containers you may define later in the file. | |
178 | # | |
179 | # All of these directives may appear inside <VirtualHost> containers, | |
180 | # in which case these default settings will be overridden for the | |
181 | # virtual host being defined. | |
182 | # | |
183 | ||
184 | # | |
185 | # If your ServerType directive (set earlier in the 'Global Environment' | |
186 | # section) is set to "inetd", the next few directives don't have any | |
187 | # effect since their settings are defined by the inetd configuration. | |
188 | # Skip ahead to the ServerAdmin directive. | |
189 | # | |
190 | ||
191 | # | |
192 | # Port: The port to which the standalone server listens. For | |
193 | # ports < 1023, you will need httpd to be run as root initially. | |
194 | # | |
195 | Port 80 | |
196 | ||
197 | # | |
198 | # If you wish httpd to run as a different user or group, you must run | |
199 | # httpd as root initially and it will switch. | |
200 | # | |
98393628 | 201 | User http |
4af76ed4 | 202 | Group http |
203 | ||
204 | # | |
205 | # ServerAdmin: Your address, where problems with the server should be | |
206 | # e-mailed. This address appears on some server-generated pages, such | |
207 | # as error documents. | |
208 | # | |
209 | ServerAdmin admin@your_domain.org | |
210 | ||
211 | # | |
212 | # ServerName allows you to set a host name which is sent back to clients for | |
213 | # your server if it's different than the one the program would get (i.e., use | |
214 | # "www" instead of the host's real name). | |
215 | # | |
216 | # Note: You cannot just invent host names and hope they work. The name you | |
217 | # define here must be a valid DNS name for your host. If you don't understand | |
218 | # this, ask your network administrator. | |
219 | # If your host doesn't have a registered DNS name, enter its IP address here. | |
220 | # You will have to access it by its address (e.g., http://123.45.67.89/) | |
221 | # anyway, and this will make redirections work in a sensible way. | |
222 | # | |
888bfdde JB |
223 | # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your |
224 | # machine always knows itself by this address. If you use Apache strictly for | |
225 | # local testing and development, you may use 127.0.0.1 as the server name. | |
226 | # | |
4af76ed4 | 227 | #ServerName new.host.name |
228 | ||
229 | # | |
230 | # DocumentRoot: The directory out of which you will serve your | |
231 | # documents. By default, all requests are taken from this directory, but | |
232 | # symbolic links and aliases may be used to point to other locations. | |
233 | # | |
234 | DocumentRoot "/home/httpd/html" | |
235 | ||
236 | # | |
237 | # Each directory to which Apache has access, can be configured with respect | |
238 | # to which services and features are allowed and/or disabled in that | |
239 | # directory (and its subdirectories). | |
240 | # | |
241 | # First, we configure the "default" to be a very restrictive set of | |
242 | # permissions. | |
243 | # | |
244 | <Directory /> | |
98393628 | 245 | Options FollowSymLinks |
246 | AllowOverride None | |
4af76ed4 | 247 | </Directory> |
248 | ||
249 | # | |
250 | # Note that from this point forward you must specifically allow | |
251 | # particular features to be enabled - so if something's not working as | |
252 | # you might expect, make sure that you have specifically enabled it | |
253 | # below. | |
254 | # | |
255 | ||
256 | # | |
257 | # This should be changed to whatever you set DocumentRoot to. | |
258 | # | |
259 | <Directory "/home/httpd/html"> | |
260 | ||
261 | # | |
262 | # This may also be "None", "All", or any combination of "Indexes", | |
263 | # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". | |
264 | # | |
265 | # Note that "MultiViews" must be named *explicitly* --- "Options All" | |
266 | # doesn't give it to you. | |
267 | # | |
888bfdde | 268 | Options Indexes FollowSymLinks MultiViews |
4af76ed4 | 269 | |
270 | # | |
271 | # This controls which options the .htaccess files in directories can | |
272 | # override. Can also be "All", or any combination of "Options", "FileInfo", | |
273 | # "AuthConfig", and "Limit" | |
274 | # | |
98393628 | 275 | AllowOverride None |
4af76ed4 | 276 | |
277 | # | |
278 | # Controls who can get stuff from this server. | |
279 | # | |
98393628 | 280 | Order allow,deny |
281 | Allow from all | |
4af76ed4 | 282 | </Directory> |
283 | ||
284 | # | |
285 | # UserDir: The name of the directory which is appended onto a user's home | |
286 | # directory if a ~user request is received. | |
287 | # | |
288 | UserDir public_html | |
289 | ||
290 | # | |
291 | # Control access to UserDir directories. The following is an example | |
292 | # for a site where these directories are restricted to read-only. | |
293 | # | |
888bfdde | 294 | #<Directory /home/*/public_html> |
4af76ed4 | 295 | # AllowOverride FileInfo AuthConfig Limit |
296 | # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec | |
297 | # <Limit GET POST OPTIONS PROPFIND> | |
298 | # Order allow,deny | |
299 | # Allow from all | |
300 | # </Limit> | |
888bfdde | 301 | # <LimitExcept GET POST OPTIONS PROPFIND> |
4af76ed4 | 302 | # Order deny,allow |
303 | # Deny from all | |
48184c11 | 304 | # </LimitExcept> |
4af76ed4 | 305 | #</Directory> |
306 | ||
307 | # | |
308 | # DirectoryIndex: Name of the file or files to use as a pre-written HTML | |
309 | # directory index. Separate multiple entries with spaces. | |
310 | # | |
c96ad71b | 311 | <IfModule mod_dir.c> |
888bfdde | 312 | DirectoryIndex index.html index.htm index.shtml index.cgi index.php |
1301ccbc | 313 | </IfModule> |
4af76ed4 | 314 | |
315 | # | |
316 | # AccessFileName: The name of the file to look for in each directory | |
317 | # for access control information. | |
318 | # | |
319 | AccessFileName .htaccess | |
320 | ||
321 | # | |
322 | # The following lines prevent .htaccess files from being viewed by | |
323 | # Web clients. Since .htaccess files often contain authorization | |
324 | # information, access is disallowed for security reasons. Comment | |
325 | # these lines out if you want Web visitors to see the contents of | |
326 | # .htaccess files. If you change the AccessFileName directive above, | |
327 | # be sure to make the corresponding changes here. | |
328 | # | |
888bfdde JB |
329 | # Also, folks tend to use names such as .htpasswd for password |
330 | # files, so this will protect those as well. | |
331 | # | |
332 | <Files ~ "^\.ht"> | |
98393628 | 333 | Order allow,deny |
334 | Deny from all | |
48184c11 | 335 | Satisfy All |
4af76ed4 | 336 | </Files> |
337 | ||
338 | # | |
339 | # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each | |
340 | # document that was negotiated on the basis of content. This asks proxy | |
341 | # servers not to cache the document. Uncommenting the following line disables | |
342 | # this behavior, and proxies will be allowed to cache the documents. | |
343 | # | |
344 | #CacheNegotiatedDocs | |
345 | ||
346 | # | |
347 | # UseCanonicalName: (new for 1.3) With this setting turned on, whenever | |
348 | # Apache needs to construct a self-referencing URL (a URL that refers back | |
349 | # to the server the response is coming from) it will use ServerName and | |
350 | # Port to form a "canonical" name. With this setting off, Apache will | |
351 | # use the hostname:port that the client supplied, when possible. This | |
352 | # also affects SERVER_NAME and SERVER_PORT in CGI scripts. | |
353 | # | |
354 | UseCanonicalName On | |
355 | ||
356 | # | |
357 | # TypesConfig describes where the mime.types file (or equivalent) is | |
358 | # to be found. /etc/mime.types is provided by mailcap package. | |
359 | # | |
360 | TypesConfig /etc/mime.types | |
361 | ||
362 | # | |
363 | # DefaultType is the default MIME type the server will use for a document | |
364 | # if it cannot otherwise determine one, such as from filename extensions. | |
365 | # If your server contains mostly text or HTML documents, "text/plain" is | |
366 | # a good value. If most of your content is binary, such as applications | |
367 | # or images, you may want to use "application/octet-stream" instead to | |
368 | # keep browsers from trying to display binary files as though they are | |
369 | # text. | |
370 | # | |
371 | DefaultType text/plain | |
372 | ||
373 | # | |
374 | # The mod_mime_magic module allows the server to use various hints from the | |
375 | # contents of the file itself to determine its type. The MIMEMagicFile | |
376 | # directive tells the module where the hint definitions are located. | |
377 | # mod_mime_magic is not part of the default server (you have to add | |
378 | # it yourself with a LoadModule [see the DSO paragraph in the 'Global | |
379 | # Environment' section], or recompile the server and include mod_mime_magic | |
380 | # as part of the configuration), so it's enclosed in an <IfModule> container. | |
381 | # This means that the MIMEMagicFile directive will only be processed if the | |
382 | # module is part of the server. | |
383 | # | |
384 | <IfModule mod_mime_magic.c> | |
7ba668f5 | 385 | MIMEMagicFile /etc/httpd/magic |
4af76ed4 | 386 | </IfModule> |
387 | ||
388 | # | |
389 | # HostnameLookups: Log the names of clients or just their IP addresses | |
390 | # e.g., www.apache.org (on) or 204.62.129.132 (off). | |
391 | # The default is off because it'd be overall better for the net if people | |
392 | # had to knowingly turn this feature on, since enabling it means that | |
393 | # each client request will result in AT LEAST one lookup request to the | |
394 | # nameserver. | |
395 | # | |
396 | HostnameLookups Off | |
397 | ||
4af76ed4 | 398 | # |
399 | # The following directives define some format nicknames for use with | |
400 | # a CustomLog directive (see below). | |
401 | # | |
402 | LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined | |
403 | LogFormat "%h %l %u %t \"%r\" %>s %b" common | |
404 | LogFormat "%{Referer}i -> %U" referer | |
405 | LogFormat "%{User-agent}i" agent | |
406 | ||
98393628 | 407 | # |
408 | # ErrorLog: The location of the error log file. | |
409 | # If you do not specify an ErrorLog directive within a <VirtualHost> | |
410 | # container, error messages relating to that virtual host will be | |
411 | # logged here. If you *do* define an error logfile for a <VirtualHost> | |
412 | # container, that host's errors will be logged there and not here. | |
413 | # | |
414 | ErrorLog /var/log/httpd/error_log | |
4af76ed4 | 415 | # |
416 | # The location and format of the access logfile (Common Logfile Format). | |
417 | # If you do not define any access logfiles within a <VirtualHost> | |
418 | # container, they will be logged here. Contrariwise, if you *do* | |
419 | # define per-<VirtualHost> access logfiles, transactions will be | |
420 | # logged therein and *not* in this file. | |
421 | # | |
422 | CustomLog /var/log/httpd/access_log common | |
4af76ed4 | 423 | CustomLog /var/log/httpd/referer_log referer |
424 | CustomLog /var/log/httpd/agent_log agent | |
425 | ||
426 | # | |
98393628 | 427 | # LogLevel: Control the number of messages logged to the error_log. |
428 | # Possible values include: debug, info, notice, warn, error, crit, | |
429 | # alert, emerg. | |
4af76ed4 | 430 | # |
98393628 | 431 | LogLevel warn |
4af76ed4 | 432 | |
433 | # | |
434 | # Optionally add a line containing the server version and virtual host | |
435 | # name to server-generated pages (error documents, FTP directory listings, | |
436 | # mod_status and mod_info output etc., but not CGI generated documents). | |
437 | # Set to "EMail" to also include a mailto: link to the ServerAdmin. | |
438 | # Set to one of: On | Off | EMail | |
439 | # | |
440 | ServerSignature Email | |
441 | ||
442 | # | |
443 | # Aliases: Add here as many aliases as you need (with no limit). The format is | |
444 | # Alias fakename realname | |
445 | # | |
446 | # Note that if you include a trailing / on fakename then the server will | |
447 | # require it to be present in the URL. So "/icons" isn't aliased in this | |
448 | # example, only "/icons/".. | |
449 | # | |
450 | Alias /icons/ "/home/httpd/icons/" | |
451 | ||
452 | <Directory "/home/httpd/icons"> | |
7ba668f5 | 453 | Options Indexes MultiViews |
454 | AllowOverride None | |
455 | Order allow,deny | |
456 | Allow from all | |
1d3d2b1b | 457 | </Directory> |
4af76ed4 | 458 | |
459 | # | |
460 | # ScriptAlias: This controls which directories contain server scripts. | |
461 | # ScriptAliases are essentially the same as Aliases, except that | |
462 | # documents in the realname directory are treated as applications and | |
463 | # run by the server when requested rather than as documents sent to the client. | |
464 | # The same rules about trailing "/" apply to ScriptAlias directives as to | |
465 | # Alias. | |
466 | # | |
467 | ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/" | |
468 | ||
469 | # | |
470 | # "/home/httpd/cgi-bin" should be changed to whatever your ScriptAliased | |
471 | # CGI directory exists, if you have that configured. | |
472 | # | |
473 | <Directory "/home/httpd/cgi-bin"> | |
7ba668f5 | 474 | AllowOverride None |
475 | Options None | |
476 | Order allow,deny | |
477 | Allow from all | |
4af76ed4 | 478 | </Directory> |
479 | ||
480 | # | |
481 | # Redirect allows you to tell clients about documents which used to exist in | |
482 | # your server's namespace, but do not anymore. This allows you to tell the | |
483 | # clients where to look for the relocated document. | |
484 | # Format: Redirect old-URI new-URL | |
485 | # | |
486 | ||
487 | # | |
488 | # Directives controlling the display of server-generated directory listings. | |
489 | # | |
490 | ||
491 | # | |
492 | # FancyIndexing is whether you want fancy directory indexing or standard | |
493 | # | |
494 | IndexOptions FancyIndexing | |
495 | ||
496 | # | |
497 | # AddIcon* directives tell the server which icon to show for different | |
498 | # files or filename extensions. These are only displayed for | |
499 | # FancyIndexed directories. | |
500 | # | |
501 | AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip | |
502 | ||
503 | AddIconByType (TXT,/icons/text.gif) text/* | |
504 | AddIconByType (IMG,/icons/image2.gif) image/* | |
505 | AddIconByType (SND,/icons/sound2.gif) audio/* | |
506 | AddIconByType (VID,/icons/movie.gif) video/* | |
507 | ||
508 | AddIcon /icons/binary.gif .bin .exe | |
509 | AddIcon /icons/binhex.gif .hqx | |
510 | AddIcon /icons/tar.gif .tar | |
511 | AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv | |
512 | AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip | |
513 | AddIcon /icons/a.gif .ps .ai .eps | |
514 | AddIcon /icons/layout.gif .html .shtml .htm .pdf | |
515 | AddIcon /icons/text.gif .txt | |
516 | AddIcon /icons/c.gif .c | |
517 | AddIcon /icons/p.gif .pl .py | |
518 | AddIcon /icons/f.gif .for | |
519 | AddIcon /icons/dvi.gif .dvi | |
520 | AddIcon /icons/uuencoded.gif .uu | |
521 | AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl | |
522 | AddIcon /icons/tex.gif .tex | |
523 | AddIcon /icons/bomb.gif core | |
524 | ||
525 | AddIcon /icons/back.gif .. | |
526 | AddIcon /icons/hand.right.gif README | |
527 | AddIcon /icons/folder.gif ^^DIRECTORY^^ | |
528 | AddIcon /icons/blank.gif ^^BLANKICON^^ | |
529 | ||
530 | # | |
531 | # DefaultIcon is which icon to show for files which do not have an icon | |
532 | # explicitly set. | |
533 | # | |
534 | DefaultIcon /icons/unknown.gif | |
535 | ||
536 | # | |
537 | # AddDescription allows you to place a short description after a file in | |
538 | # server-generated indexes. These are only displayed for FancyIndexed | |
539 | # directories. | |
540 | # Format: AddDescription "description" filename | |
541 | # | |
542 | AddDescription "GZIP compressed document" .gz | |
543 | AddDescription "tar archive" .tar | |
544 | AddDescription "GZIP compressed tar archive" .tgz | |
545 | ||
546 | # | |
547 | # ReadmeName is the name of the README file the server will look for by | |
548 | # default, and append to directory listings. | |
549 | # | |
550 | # HeaderName is the name of a file which should be prepended to | |
551 | # directory indexes. | |
552 | # | |
888bfdde JB |
553 | # If MultiViews are amongst the Options in effect, the server will |
554 | # first look for name.html and include it if found. If name.html | |
555 | # doesn't exist, the server will then look for name.txt and include | |
556 | # it as plaintext if found. | |
4af76ed4 | 557 | # |
558 | ReadmeName README | |
559 | HeaderName HEADER | |
560 | ||
561 | # | |
562 | # IndexIgnore is a set of filenames which directory indexing should ignore | |
563 | # and not include in the listing. Shell-style wildcarding is permitted. | |
564 | # | |
565 | IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t | |
566 | ||
567 | # | |
568 | # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress | |
569 | # information on the fly. Note: Not all browsers support this. | |
570 | # Despite the name similarity, the following Add* directives have nothing | |
571 | # to do with the FancyIndexing customization directives above. | |
572 | # | |
573 | AddEncoding x-compress Z | |
574 | AddEncoding x-gzip gz | |
575 | ||
576 | # | |
577 | # AddLanguage allows you to specify the language of a document. You can | |
578 | # then use content negotiation to give a browser a file in a language | |
888bfdde JB |
579 | # it can understand. |
580 | # | |
581 | # Note 1: The suffix does not have to be the same as the language | |
582 | # keyword --- those with documents in Polish (whose net-standard | |
583 | # language code is pl) may wish to use "AddLanguage pl .po" to | |
584 | # avoid the ambiguity with the common suffix for perl scripts. | |
585 | # | |
586 | # Note 2: The example entries below illustrate that in quite | |
587 | # some cases the two character 'Language' abbriviation is not | |
588 | # identical to the two character 'Country' code for its country, | |
589 | # E.g. 'Danmark/dk' versus 'Danish/da'. | |
590 | # | |
591 | # Note 3: In the case of 'ltz' we violate the RFC by using a three char | |
592 | # specifier. But there is 'work in progress' to fix this and get | |
593 | # the reference data for rfc1766 cleaned up. | |
594 | # | |
595 | # Danish (da) - Dutch (nl) - English (en) - Estonian (ee) | |
596 | # French (fr) - German (de) - Greek-Modern (el) | |
597 | # Italian (it) - Korean (kr) - Norwegian (no) | |
598 | # Portugese (pt) - Luxembourgeois* (ltz) | |
599 | # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz) | |
600 | # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja) | |
601 | # Russian (ru) | |
602 | # | |
603 | AddLanguage ca .ca | |
604 | AddLanguage cz .cz | |
605 | AddLanguage da .dk | |
4af76ed4 | 606 | AddLanguage de .de |
888bfdde | 607 | AddLanguage en .en |
4af76ed4 | 608 | AddLanguage el .el |
888bfdde JB |
609 | AddLanguage es .es |
610 | AddLanguage et .ee | |
611 | AddLanguage fr .fr | |
612 | AddLanguage he .he | |
4af76ed4 | 613 | AddLanguage it .it |
888bfdde JB |
614 | AddLanguage ja .ja |
615 | AddLanguage kr .kr | |
616 | AddLanguage ltz .lu | |
617 | AddLanguage nl .nl | |
48184c11 | 618 | AddLanguage nn .nn |
888bfdde | 619 | AddLanguage no .no |
4af76ed4 | 620 | AddLanguage pl .po |
888bfdde JB |
621 | AddLanguage pt .pt |
622 | AddLanguage pt-br .pt-br | |
623 | AddLanguage ru .ru | |
48184c11 | 624 | AddLanguage sv .sv |
888bfdde | 625 | AddLanguage tw .tw |
48184c11 | 626 | AddLanguage zh-tw .tw |
888bfdde JB |
627 | |
628 | AddCharset Big5 .Big5 .big5 | |
629 | AddCharset CP866 .cp866 | |
630 | AddCharset ISO-8859-2 .iso-pl | |
631 | AddCharset ISO-8859-5 .iso-ru | |
632 | AddCharset ISO-8859-8 .iso8859-8 | |
633 | AddCharset ISO-2022-JP .his | |
634 | AddCharset ISO-2022-KR .iso-kr | |
635 | AddCharset KOI8-R .koi8-r | |
636 | AddCharset UCS-2 .ucs2 | |
637 | AddCharset UCS-4 .ucs4 | |
638 | AddCharset UTF-8 .utf8 | |
639 | AddCharset WINDOWS-1251 .cp-1251 | |
640 | ||
4af76ed4 | 641 | # |
642 | # LanguagePriority allows you to give precedence to some languages | |
643 | # in case of a tie during content negotiation. | |
644 | # Just list the languages in decreasing order of preference. | |
645 | # | |
646 | LanguagePriority en pl fr de | |
647 | ||
888bfdde JB |
648 | # |
649 | # AddType allows you to tweak mime.types without actually editing it, or to | |
650 | # make certain files to be certain types. | |
651 | # | |
652 | # For example, the PHP 3.x module (not part of the Apache distribution - see | |
653 | # http://www.php.net) will typically use: | |
654 | # | |
655 | #AddType application/x-httpd-php3 .php3 | |
656 | #AddType application/x-httpd-php3-source .phps | |
657 | # | |
658 | # And for PHP 4.x, use: | |
659 | # | |
660 | #AddType application/x-httpd-php .php | |
661 | #AddType application/x-httpd-php-source .phps | |
662 | # | |
663 | #AddType application/x-tar .tgz | |
664 | ||
4af76ed4 | 665 | # |
666 | # AddHandler allows you to map certain file extensions to "handlers", | |
667 | # actions unrelated to filetype. These can be either built into the server | |
668 | # or added with the Action command (see below) | |
669 | # | |
670 | # If you want to use server side includes, or CGI outside | |
671 | # ScriptAliased directories, uncomment the following lines. | |
672 | # | |
673 | # To use CGI scripts: | |
674 | # | |
675 | AddHandler cgi-script .cgi | |
676 | ||
677 | # | |
678 | # To use server-parsed HTML files | |
679 | # | |
680 | AddType text/html .shtml | |
681 | AddHandler server-parsed .shtml | |
682 | ||
683 | # | |
684 | # Uncomment the following line to enable Apache's send-asis HTTP file | |
685 | # feature | |
686 | # | |
687 | AddHandler send-as-is asis | |
688 | ||
689 | # | |
690 | # If you wish to use server-parsed imagemap files, use | |
691 | # | |
692 | AddHandler imap-file map | |
693 | ||
694 | # | |
695 | # To enable type maps, you might want to use | |
696 | # | |
697 | AddHandler type-map var | |
698 | ||
699 | # | |
700 | # Action lets you define media types that will execute a script whenever | |
701 | # a matching file is called. This eliminates the need for repeated URL | |
702 | # pathnames for oft-used CGI file processors. | |
703 | # Format: Action media/type /cgi-script/location | |
704 | # Format: Action handler-name /cgi-script/location | |
705 | # | |
706 | ||
707 | # | |
708 | # MetaDir: specifies the name of the directory in which Apache can find | |
709 | # meta information files. These files contain additional HTTP headers | |
710 | # to include when sending the document | |
711 | # | |
712 | MetaDir .web | |
713 | ||
714 | # | |
715 | # MetaSuffix: specifies the file name suffix for the file containing the | |
716 | # meta information. | |
717 | # | |
718 | MetaSuffix .meta | |
719 | ||
720 | # | |
721 | # Customizable error response (Apache style) | |
722 | # these come in three flavors | |
723 | # | |
724 | # 1) plain text | |
725 | #ErrorDocument 500 "The server made a boo boo. | |
48184c11 | 726 | # n.b. the single leading (") marks it as text, it does not get output |
4af76ed4 | 727 | # |
728 | # 2) local redirects | |
729 | #ErrorDocument 404 /missing.html | |
730 | # to redirect to local URL /missing.html | |
731 | #ErrorDocument 404 /cgi-bin/missing_handler.pl | |
732 | # N.B.: You can redirect to a script or a document using server-side-includes. | |
733 | # | |
734 | # 3) external redirects | |
48184c11 | 735 | #ErrorDocument 402 http://some.other-server.com/subscription_info.html |
4af76ed4 | 736 | # N.B.: Many of the environment variables associated with the original |
737 | # request will *not* be available to such a script. | |
738 | ||
7745b7bc | 739 | Alias /errordocs/ "/home/httpd/errordocs/" |
740 | ||
52e4c839 | 741 | <Directory /home/httpd/errordocs/> |
98393628 | 742 | AllowOverride none |
743 | Options IncludesNoExec FollowSymLinks | |
52e4c839 | 744 | </Directory> |
745 | ||
7745b7bc | 746 | ErrorDocument 400 /errordocs/400.shtml |
747 | ErrorDocument 401 /errordocs/401.shtml | |
748 | ErrorDocument 403 /errordocs/403.shtml | |
749 | ErrorDocument 404 /errordocs/404.shtml | |
750 | ErrorDocument 405 /errordocs/405.shtml | |
751 | ErrorDocument 406 /errordocs/406.shtml | |
752 | ErrorDocument 408 /errordocs/408.shtml | |
753 | ErrorDocument 410 /errordocs/410.shtml | |
754 | ErrorDocument 411 /errordocs/411.shtml | |
755 | ErrorDocument 414 /errordocs/414.shtml | |
756 | ErrorDocument 500 /errordocs/500.shtml | |
757 | ErrorDocument 503 /errordocs/503.shtml | |
758 | ||
4af76ed4 | 759 | # The following directives modify normal HTTP response behavior. |
760 | # The first directive disables keepalive for Netscape 2.x and browsers that | |
761 | # spoof it. There are known problems with these browser implementations. | |
762 | # The second directive is for Microsoft Internet Explorer 4.0b2 | |
763 | # which has a broken HTTP/1.1 implementation and does not properly | |
764 | # support keepalive when it is used on 301 or 302 (redirect) responses. | |
765 | # | |
766 | BrowserMatch "Mozilla/2" nokeepalive | |
767 | BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 | |
768 | ||
769 | # | |
770 | # The following directive disables HTTP/1.1 responses to browsers which | |
771 | # are in violation of the HTTP/1.0 spec by not being able to grok a | |
772 | # basic 1.1 response. | |
773 | # | |
774 | BrowserMatch "RealPlayer 4\.0" force-response-1.0 | |
775 | BrowserMatch "Java/1\.0" force-response-1.0 | |
776 | BrowserMatch "JDK/1\.0" force-response-1.0 | |
777 | ||
4af76ed4 | 778 | # |
779 | # Allow remote server configuration reports, with the URL of | |
48184c11 JB |
780 | # http://servername/server-info (requires that mod_info.c be loaded). |
781 | # Change the ".your-domain.com" to match your domain to enable. | |
4af76ed4 | 782 | # |
783 | #<Location /server-info> | |
7ba668f5 | 784 | # SetHandler server-info |
785 | # Order deny,allow | |
786 | # Deny from all | |
48184c11 | 787 | # Allow from .your-domain.com |
4af76ed4 | 788 | #</Location> |
789 | ||
790 | # | |
791 | # There have been reports of people trying to abuse an old bug from pre-1.1 | |
792 | # days. This bug involved a CGI script distributed as a part of Apache. | |
793 | # By uncommenting these lines you can redirect these attacks to a logging | |
794 | # script on phf.apache.org. Or, you can record them yourself, using the script | |
795 | # support/phf_abuse_log.cgi. | |
796 | # | |
797 | #<Location /cgi-bin/phf*> | |
7ba668f5 | 798 | # Deny from all |
799 | # ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi | |
4af76ed4 | 800 | #</Location> |