Red Hat ENTERPRISE LINUX 3 Reference Manual page 166

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

148
10.5.41.
Redirect
When a webpage is moved,
is as follows:
Redirect / old-path / file-name
In this example, replace
current-domain
for
file-name .
In this example, any requests for
the new location.
For
more
advanced
with
the
Apache
module, refer to the Apache Software Foundation documentation online at
mod_rewrite
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html.
10.5.42.
IndexOptions
controls the appearance of server generated directing listings, by adding icons, file
IndexOptions
descriptions, and so on. If
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
directive (usually,
DirectoryIndex
HTTP Server creates an HTML directory listing of the requested directory. The appearance of this
directory listing is controlled, in part, by the
The default configuration turns on
listing by clicking on column headers. Another click on the same header switches from ascending
to descending order.
extensions.
The
AddDescription
description for the file in server generated directory listings.
has a number of other parameters which can be set to control the appearance of server
IndexOptions
generated directories. Parameters include
HTML
and
HEIGHT
making the icons act as part of the HTML link anchor along with the filename and others.
10.5.43.
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
MIME encoded x-compress and x-gzip files in server generated directory listings.
10.5.44.
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
, in server generated directory listings.
text
can be used to map the file location to a new URL. The format
Redirect
old-path
and
current-path
file-name
redirection
techniques,
HTTP
Server.
Options Indexes
index.html
FancyIndexing
also shows different icons for different files, based upon file
FancyIndexing
option, when used in conjunction with
tags for the icons in server generated webpages;
WIDTH
http:// current-domain / current-path / file-name
with the old path information for
with the current domain and path information
at the old location is automatically redirected to
use
the
For
more
information
is set (refer to Section 10.5.22
). If an
index.html
directive.
IndexOptions
. This means that a user can re-sort a directory
and
IconHeight
IconWidth
text.gif
Chapter 10. Apache HTTP Server
file-name
module
mod_rewrite
about
configuring
Options
file is not found, Apache
, presents a short
FancyIndexing
, to make the server include
IconsAreLinks
compressed.gif
next to files with a mime-type of
and
included
the
), the Web
, for
icon next to

Advertisement

Table of Contents
loading

Table of Contents