Ford & Mason Ltd
HOME
ABOUT
CONTACT
RESOURCES
ADVERTISING



donations support the development of
cronolog.org
and
refcards.com

next up previous contents index
Next: NCSA server directives Up: File typing directives Previous: File typing directives


CERN server directives

The CERN file typing directives specify suffix patterns that indicate file content type. There are two special patterns: *.* matches all files that contain a period and have not been matched by other rules as listed below, and * matches any file that is not matched by any other rule.


AddType .suffix type/subtype encoding [quality]    (numerous)

Indicates the MIME type and subtype for files with the specified suffix. Knowledge of most common types is built into the server. encoding specifies the MIME content encoding and is usually 8bit, 7bit or binary. The optional quality field indicates the relative value, on a scale from 0.0 to 1.0, of the content type, for use in cases where multiple representations of a file are available and are all matched by a request. In this case the server will choose the file with the highest-valued content type.

    AddType .html text/html 8bit 1.0

Equivalent to the NCSA AddType directive.


AddEncoding .suffix encoding                      (numerous)

Indicates the MIME encoding type for files with the specified suffix. Knowledge of most common encodings is built into the server.

    AddEncoding .gz x-gzip

Equivalent to the NCSA AddEncoding directive.


AddLanguage .suffix language

Indicates the language for files with the specified suffix. For example, French versions of documents may be designated using a suffix as follows:

    AddLanguage .fr fr

There is no equivalent NCSA directive.


SuffixCaseSense { On  | Off }                          (Off)

Specifies whether suffixes are case-sensitive.
There is no equivalent NCSA directive.


next up previous contents index
Next: NCSA server directives Up: File typing directives Previous: File typing directives

[ITCP]Spinning the Web by Andrew Ford
© 1995 International Thomson Publishing
© 2002 Andrew Ford and Ford & Mason Ltd
Note: this HTML document was generated in December 1994 directly from the LaTeX source files using LaTeX2HTML. It was formatted into our standard page layout using the Template Toolkit. The document is mainly of historical interest as obviously many of the sites mentioned have long since disappeared.

 
Copyright © 1996-2002 Ford & Mason Ltd