Red Hat LINUX 7.2 Reference Manual page 207

Hide thumbs Also See for LINUX 7.2:
Table of Contents

Advertisement

Section 13.3:Configuration Directives in httpd.conf
207
13.3.51 Redirect
When a Web page is moved, Redirect can be used to map the old URL to a new URL. The format
is as follows:
Redirect / path /foo.html http:// new_domain / path /foo.html
So, if an HTTP request is received for a page which used to be found at http://your_do-
main/path/foo.html, the server will send back the new URL (http://new_domain/path/foo.html) to the
client, which should attempt to fetch the document from the new URL.
For more advanced Redirection you can use the mod_rewrite module included with the server.
13.3.52 IndexOptions
IndexOptions controls the appearance of server generated directing listings, by adding icons and
file descriptions, etc. If Options Indexes is set (see Section 13.3.30, Options ), your Web
server may generate a directory listening when your Web server receives an HTTP request like the
following:
http://your_domain/this_directory/
First, your Web server looks in that directory for a file from the list after the DirectoryIndex
directive (usually, index.html). If your Web server does not find one of those files, it creates an
HTML directory listing of the subdirectories and files in the directory. You can modify the appearance
of this directory listing using certain directives in httpd.conf, including IndexOptions.
Your default configuration sets FancyIndexing on. If FancyIndexing is turned on, clicking
on the column headers in the directory listing will sort the order of the display by that header. Another
click on the same header will switch from ascending to descending order and back. FancyIndex-
ing also shows different icons for different files, depending upon file extensions. If you use the
AddDescription directive and turn FancyIndexing on, then a short description of a file will
be included in the server generated directory listing.
IndexOptions has a number of other parameters which can be set to control the appearance of
server generated directories. Parameters include IconHeight and IconWidth, to make the server
include HTML HEIGHT and WIDTH tags for the icons in server generated Web pages; IconsAre-
Links, for making the icons act as part of the HTML link anchor along with the filename, and others.
13.3.53 AddIconByEncoding
This directive names icons which will be displayed by files with MIME encoding, in server generated
directory listings. For example, by default, your Web server shows the compressed.gif icon next
to MIME encoded x-compress and x-gzip files in server generated directory listings.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LINUX 7.2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Linux 7.2

Table of Contents