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