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: Server scripts Previous: Server scripts


CERN server directives

A request string may already have been transformed by the CERN server mapping directives (see Section gif) before it is matched against a server script directive.

Script names beginning with the prefix nph- are taken to be no-parse header scripts, whose output is assumed to be a complete HTTP response requiring no further interpretation or modification by the server.


Exec pattern replacement

If the current request string matches the specified pattern, the request is accepted as specifying an external program. There must be a single asterisk at the end of both pattern and replacement. The string before the asterisk in replacement gives the directory where the program can be found. Within the part of the request string matching the asterisk in pattern, the first component, up to a forward slash, gives the program name, and the remainder is passed to the program as extra information in the PATH_INFO environment variable, according to the CGI specification.

For example, given the Exec rule:

    Exec /depts/sales/bin/* /usr/sales/bin/*

and the request string:

    /depts/sales/bin/abc/uvw/xyz

The abc/uvw/xyz part of the request string matches the asterisk in the pattern part of the Exec rule. The program name is abc and /uvw/xyz is passed to the program as extra information.

Analogous to the NCSA Script directives.


Search pathname                                 (no default)

The pathname of a program to handle search requests that are not explicitly mapped to a CGI script. The query string and path information is passed in the QUERY_STRING and PATH_INFO environment variables.

    Search /usr/CGI-bin/Search-script

There is no equivalent NCSA directive.


POST-Script pathname                            (no default)

The pathname of a program to handle requests made with the HTTP POST method that are not explicitly mapped to a CGI script.

    POST-Script /usr/CGI-bin/POST-script

There is no equivalent NCSA directive.


PUT-Script pathname                             (no default)

The pathname of a program to handle requests made with the HTTP PUT method that are not explicitly mapped to a CGI script.

    PUT-Script /usr/CGI/bin/PUT-script

There is no equivalent NCSA directive.


DELETE-Script pathname

The pathname of a program to handle requests made with the HTTP DELETE method that are not explicitly mapped to a CGI script.

    DELETE-Script /usr/CGI-bin/del-script

There is no equivalent NCSA directive.


next up previous contents index
Next: NCSA server directives Up: Server scripts Previous: Server scripts

[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