home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
ONLINE
/
SREFV12J
/
ALIASES.IN
< prev
next >
Wrap
Text File
|
1997-05-26
|
7KB
|
160 lines
; This contains the SRE-FILTER sample alias file. 2/97
;
; I) Introduction:
;
; Aliases are used to modify and transform the request selector.
;
; There are several reaons for wanting to do this:
; Local redirection: Substituting for common "misspellings and abbreviations"
; Implementing searchable indices.
; Remote redirection: Redirecting requests for moved URLS
; (SEMI-OBSOLETE) Setting path for CGI-BIN scripts
; (SEMI-OBSOLETE) Transferring non-data-directory files.
;
; 2) Structure of entries
;
; Each line is structured as:
; host_nickname// TARGET REPLACEMENT
; where host_nickname// is optional.
; Spaces should seperate these items.
; The TARGET should have NO embedded spaes.
; Note that in the TARGET, we convert / to \, and drop any leading / (or \).
;
; *Special feature: if a line ends with a ' ,' (a space, then a comma)
; the next line is treated as a continuation (with intervening spaces
; removed).
;
; SRE-FILTER attempts to (exact or wildcard) match the request selector
; with each TARGET.
;
; 3) Notes:
;
; * Definition of "request selector:"
; The "request selector" is the slightly modified middle portion of
; the request string sent by a client to a server.
; For example, a URL of
; http://your.server/big/dance/price.htm
; would generate a request string of
; GET /big/dance/price.htm HTTP/1.0
; and the selector would be
; big/dance/price.htm
;
; * If a host_nickname appears, that the entry is only
; used for "Hosts" that have been assigned this host_nickname.
;
; * If a match is found, the request selector is replaced by the
; REPLACEMENT, with possible "wildcard substitution".
;
; * "Wildcard substitution" occurs only if a * appears in the REPLACEMENT
; and in the TARGET. When this occurs, and the request selector "wildcard"
; matches the TARGET, a textual substitution will occur in the REPLACEMENT.
; Specifically, the * in the REPLACEMENT will be removed, and
; the portion of the request selector "covered" by the * (in the
; TARGET) will be inserted in it's place.
; Examples, given:
; Request selector: /CATS/A14.HTM
; an an alias entry with
; Target: /CATS/*
; Replacement: /SHOP1/PETS/FELINES/PUREBRED/*
; will yield:
; /SHOP1/PETS/FELINES/PUREBRED/A14.HTM
; Note that the A14.HTM in the request selector is "covered"
; by the * in the TARGET.
;
; 4) Some Examples -------------------
;
; i) Local redirection: Replace a "misspelling or abbreviation" with a selector
; INDEX INDEX.HTM
;
; ii) Implementing searchable indices (using SRE-FILTER's DOSEARCH utility)
; In this example, CONGRESS.DAT will be searched using the search
; list returned by the client
; TESTSRCH.HTM?* DOSEARCH?file=/congress.dat&searchfor=*&delim=$
; If ROOTC/ is a virtual directory for C:\USERS\, this will search
; C:\USERS\JOES.LST
; LOOKUSER.HTM?* dosearch?file=/ROOTC/JOES.LST&searchfor=*&delim=0
;
; iii) The next 4 examples perform "remote" redirectons.
; a) This (note use of a full URL, including the http://)
; causes a "temporary move" (http status code 302) redirection.
; YAH* http://www.yahoo.com/
; b)Specifies the same thing, but the URL that follows
; need not be comletely specified (if the ip domain is left out, it is
; assumed to be to be back to your server.) Of course, to be safe one
; should always specify the full URL (complete with http://)
; WAH* !TEMP=www.yahoo.com/
; c) A "permanent" move (http code 301) otherwise it's the same as
; example ii.
; ZAH* !MOVED=http://www.yahoo.com/
; d) A "notification of moved resource" -- client recieves a document
; telling her the resource has been moved, with a link to it's new
; location
; JOEDIR/CV.HTM !NOTIFY http://college.faraway.edu/FAC/JOE/CV.HTM
;
; iv) Specifying location of CGI-BIN script.
; This instructs SRE-FILTER to look for SCRIPT10 in d:\PROGS\NEW
; (rather the the default, "cgi_bin_dir", script directory)
; SCRIPT10 d:\progs\new
;
; v) A host specific entry (only applies to requests to
; hosts with a nickname of ZOO)
; ZOO// TIGERS ANIMALS/FELINES/TIGERS.HTM
;
; vi) Transfering files from anywhere (OBSOLETE-- we recommend use of
; virtual directories instead).
; GETMAP?* !TRANSFER=e:\MAPS\*
; Note that this assumes that 1 argument is appended to the selector (say by
; a FORM of type GET)
;
; 5) More NOTES --------------------
;
; Match precedence and wildcarding:
; Entries are checked using a "multiple wildcard" algorithim, with
; multiple substitutions (the multiple feature is new to version 1.2j).
;
; If several entries can match the selector...
; 1) Exact matches always take precedence
; 2) The wildcard match that has the most "early character" matches wins
; Thus, if your selector is FOOD/FRUIT/ORANGES.HTM
; then the order (with first being chosen before last) is:
; FOOD/FRUIT/ORANGES.HTM (the exact match)
; FOOD/FRUIT/*HTM
; FOOD/FRUIT/*
; FOOD/*IT/*HTM
; FOOD/*.HTM
; FOOD*
; (these entries can appear in any order in this file, with no
; effect on precedence). For further discussion, see SREFILTR.FAQ
;
; * A CAUTION regarding unwanted aliasing:
; Unless you explicitly want to "alias" actual files, directories,
; or "server side program" names...
; we HIGHLY RECOMMEND that all entries in this file
; have "targets" that do NOT MATCH pre-existing files,
; directories, or "actions".
; {and be especially careful if you are using any wildcard matches)
;
; * A CAUTION on local redirection and partial urls:
; When using aliases for "local redirection", URL resolution by the
; client's browser may have unexpected consequences. See the discussion
; of "local vs remote redirection" in INITFILT.DOC for details!
;
;
; ---- - - -------- End of discussion --- - - - - - -- - -
SAMPLES/TESTSRCH.HTM?* DOSEARCH?file=samples/congress.dat&delim=$&search=*
INDEX INDEX.HTM
CONFIGURE /configur.htm
FILTINST* CONFIG2*
; note use of , to signal continuation lines
;public getafile?dir=pubfiles/&showsize=yes&showdate=yes& ,
;showdir=yes&rootdir=pubfiles/&dispfile=read.me+Description+of+files& ,
;table=key&usedl=YES&tablefile=files.key+file+descriptions
public !dir?pubfiles/
!dir/* !dir?/*
!viewmess* viewmess*
!askmessbox* askmessbox*
; these next two are used by the SRE-FIlter's BBS add-on.
bbs/download/* bbs?download=*
bbs/zipdownload/* bbs?zipdownload=*