<file-name>
.
In this example, any requests for
<file-name>
at the old location is automatically redirected to
the new location.
For more advanced redirection techniques, use the
mod_rewrite
module included with the
Apache HTTP Server. For more information about configuring the
mod_rewrite
module, refer to
the Apache Software Foundation documentation online at
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
.
5.43.
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
Section 5.23, “
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.
5.44.
AddIconByEncoding
This directive names icons which are displayed by files with MIME encoding in server generated
directory listings. For example, by default, the Web server shows the
compressed.gif
icon next
to MIME encoded x-compress and x-gzip files in server generated directory listings.
5.45.
AddIconByType
This directive names icons which are displayed next to files with MIME types in server
generated directory listings. For example, the server shows the icon
text.gif
next to files with
a mime-type of
text
, in server generated directory listings.
5.46.
AddIcon
IndexOptions
175
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......