Chapter 22. Apache HTTP Server
338
Include conf.d/*.conf
IndexIgnore
IndexIgnore
lists file extensions, partial file names, wildcard expressions, or full file names. The
Web server does not include any files which match any of those parameters in server generated
directory listings.
IndexOptions
IndexOptions
controls the appearance of server generated directing listings, by adding icons, file
descriptions, and so on. If
Options Indexes
is set (refer to
Options
), the Web server generates a
directory listing when the Web server receives an HTTP request for a directory without an index.
First, the Web server looks in the requested directory for a file matching the names listed in the
DirectoryIndex
directive (usually,
index.html
). If an
index.html
file is not found, Apache
HTTP Server creates an HTML directory listing of the requested directory. The appearance of this
directory listing is controlled, in part, by the
IndexOptions
directive.
The default configuration turns on
FancyIndexing
. This means that a user can re-sort a directory
listing by clicking on column headers. Another click on the same header switches from ascending
to descending order.
FancyIndexing
also shows different icons for different files, based upon file
extensions.
The
AddDescription
option, when used in conjunction with
FancyIndexing
, presents a short
description for the file in server generated directory listings.
IndexOptions
has a number of other parameters which can be set to control the appearance of
server generated directories. The
IconHeight
and
IconWidth
parameters require the server
to include HTML
HEIGHT
and
WIDTH
tags for the icons in server generated webpages. The
IconsAreLinks
parameter combines the graphical icon with the HTML link anchor, which contains
the URL link target.
KeepAlive
KeepAlive
sets whether the server allows more than one request per connection and can be used to
prevent any one client from consuming too much of the server's resources.
By default
Keepalive
is set to
off
. If
Keepalive
is set to
on
and the server becomes
very busy, the server can quickly spawn the maximum number of child processes. In this
situation, the server slows down significantly. If
Keepalive
is enabled, it is a good idea to set
the the
KeepAliveTimeout
low (refer to
KeepAliveTimeout
for more information about the
KeepAliveTimeout
directive) and monitor the
/var/log/httpd/error_log
log file on the
server. This log reports when the server is running out of child processes.
KeepAliveTimeout
KeepAliveTimeout
sets the number of seconds the server waits after a request has been served
before it closes the connection. Once the server receives a request, the
Timeout
directive applies
instead. The
KeepAliveTimeout
directive is set to 15 seconds by default.
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 22: ...xxii ...
Страница 28: ......
Страница 36: ...10 ...
Страница 40: ...14 ...
Страница 96: ...70 ...
Страница 116: ...90 ...
Страница 144: ...118 ...
Страница 146: ......
Страница 158: ...132 ...
Страница 165: ...Installing and Removing Packages 139 Figure 11 7 Installing and removing packages simultaneously ...
Страница 166: ...140 ...
Страница 172: ...146 ...
Страница 178: ......
Страница 228: ...202 ...
Страница 264: ...238 ...
Страница 318: ...292 ...
Страница 330: ...304 ...
Страница 388: ...362 ...
Страница 428: ...402 ...
Страница 452: ......
Страница 458: ...432 ...
Страница 476: ...450 ...
Страница 478: ...452 ...
Страница 494: ...468 ...
Страница 498: ...472 ...
Страница 530: ...504 ...
Страница 536: ...510 ...
Страница 544: ...Chapter 36 Log Files 518 Figure 36 7 Log file contents after five seconds ...
Страница 546: ......
Страница 550: ...524 ...
Страница 576: ......
Страница 584: ...558 ...
Страница 608: ......
Страница 776: ...750 ...
Страница 796: ...770 ...
Страница 800: ...774 ...
Страница 804: ......
Страница 806: ...780 ...
Страница 808: ...782 ...
Страница 816: ...790 ...
Страница 820: ...794 ...
Страница 822: ...796 ...
Страница 830: ...804 ...
Страница 836: ...810 ...
Страница 844: ...818 ...
Страница 848: ...822 ...