home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
ONLINE
/
SREFV12J
/
SREFAST.HT0
< prev
next >
Wrap
Text File
|
1997-06-03
|
9KB
|
234 lines
<td>
<HTML>
<HEAD>
<TITLE>Configure SREFAST</TITLE>
</HEAD>
<BODY>
<h1> The SREFAST configurator </H1>
<b>Select an option: </b>
<ol>
<LI> <A HREF="#addone">Add an entry to</A>
the SREFAST configuration index-file
<LI><A HREF="/srefast3?removeone=1"> Remove an entry from</A>
the SREFAST configuration index-file
<LI><A HREF="/srefast3?viewconfig0=1"> View entries in the configuration file</A>.
<LI><A HREF="/srefast3?viewconfig=1"> View SREFAST usage statistics, and view entries in the <i>working </i> configuration file</A>.
<LI><A HREF="/srefast3?refresh=1"> Refresh the <i>working </i> configuration file</A>.
<li> <A HREF="#descriptions">Descriptions of SREFAST configuration options </A>
</ol>
<a href="/samples/srefast.doc"> Need more help?</a>
<pre>
</pre>
<!-- ============= ADDONE =============================== -->
<A NAME="addone"><HR></a>
<h2> Add an entry to the SREFAST configuration file </h2>
<FORM ACTION="srefast3" METHOD="POST">
<input type="hidden" name="addone" value=1>
<table border=1>
<td><STRONG>Selector and directory</STRONG></td>
<td>
<table border=2>
<td> <INPUT TYPE="CHECKBOX" NAME="nodo" VALUE="1" > NODO?</td>
<td> SEL: <INPUT TYPE="text" NAME="sel" SIZE=32 MAXLENGTH=80>
<br>
DIR: <INPUT TYPE="text" NAME="dir" SIZE=32 MAXLENGTH=80>
</td>
</table>
<td>
<tr>
<td>
<STRONG>Access controls</STRONG></td>
<td>
SERVER: <INPUT TYPE="text" NAME="server" SIZE=32 MAXLENGTH=80><BR>
HOST: <INPUT TYPE="text" NAME="HOST" SIZE=32 MAXLENGTH=80>
<br>
<table>
<td> USERS:<TEXTAREA NAME="users" ROWS=2 COLS=15></TEXTAREA></td>
<td> PWDS:<TEXTAREA NAME="pwds" ROWS=2 COLS=15></TEXTAREA></td>
</table>
</td>
<tr>
<td>
<P><STRONG>Other options</STRONG><BR> </td>
<td>
<table> <td>MIME:</td>
<td>
<menu><li>
<INPUT TYPE="radio" NAME="MIME" VALUE="text/html" >text/html ||
<INPUT TYPE="radio" NAME="MIME" VALUE="text/plain" >text/plain ||
<INPUT TYPE="radio" NAME="MIME" VALUE="image/gif" >image/gif ||
<INPUT TYPE="radio" NAME="MIME" VALUE="image/jpg" >image/jpg ||
<INPUT TYPE="radio" NAME="MIME" VALUE="application/octet-stream" > generic <br>
<li><INPUT TYPE="radio" NAME="MIME" VALUE="other" ><u>OTHER</u>:
<INPUT TYPE="text" NAME="MIME2" SIZE=30 MAXLENGTH=80><BR>
</menu>
</td>
</table>
<br><INPUT TYPE="CHECKBOX" NAME="nocache" VALUE="1" >NOCACHE ||
<INPUT TYPE="CHECKBOX" NAME="norecord" VALUE="1" >NORECORD ||
<INPUT TYPE="CHECKBOX" NAME="ssi" VALUE="1" >SSI ||
<INPUT TYPE="CHECKBOX" NAME="DIR_NAMEONLY" VALUE="1" >DIR_NAMEONLY
<BR> TRIGGER <INPUT TYPE="text" NAME="TRIGGER" SIZE=30 MAXLENGTH=80><BR>
</table>
<p>
Place at entry # (leave blank to put at the end)
<INPUT TYPE="text" NAME="entrynum" SIZE=5 MAXLENGTH=5>
<INPUT TYPE="submit" VALUE="Add entry"></table>
</FORM>
<P><A HREF="#main">Return to Top </A>
<pre>
</pre>
<!-- =================DESCRIPTIONS =========================== -->
<A NAME="descriptions"> <hr></A>
<H3> Short description of SREFAST options </h3>
<pre>
<STRONG>SEL </STRONG> <U>Required. </U> The target "selector".
The selector requested by the client will be compared against SEL.
* You can include * (wildcard) characters in SEL.
<strong>NODO </strong> <i>Optional</i>. If selected, then requests that
match SEL (and SERVER) are <b>not</b> processed by SREFAST (the
main SRE-Filter will immediately be called).
<STRONG>DIR </STRONG> <I>Optional. </I>The directory containing the requested file.
* If not specified, the GoServe default data directory is used.
* If DIR starts with a url (that MUST begin with http://),
then requests that match this entry will be redirected to this URL.
* When redirecting, you can include an * at the end of DIR to
"append the selector" (or the file portion of the selector) to the
target URL.
<STRONG>DIR_NAMEONLY</STRONG> <I>Optional. </I> Modifies the DIR option.
When mapping requests to files, SREFAST can use the value of the DIR
option in two ways:
i) It can append the selector
ii) It can append <u>just the file name</u> portion of the selector
DIR_NAMEONLY controls which method to use; if DIRNAME_ONLY is
selected, then method ii is used.
<i>Example: </i> assuming DOIT.1.!DIR='D:\PERSONAL' and the
selector is /STUF/FOO.BAR, then the following are returned:
<tt>DIR_NAMEONLY <b>not</b> selected: D:\PERSONAL\STUF\FOO.BAR
<tt>DIR_NAMEONLY selected: D:\PERSONAL\FOO.BAR
* If DIR is not specified, DIR_NAMEONLY is ignored.
<STRONG>SERVER </STRONG> <I>Optional. </I>The numeric IP address, or Host alias, this
entry is valid for.
<em>If you are <b>not</b> serving multiple hosts,
you should <b>not</b> specify a SERVER variable</em>.
* If SERVER is not specified, the entry is valid for all requests.
* Otherwise, it's value will be compared against the numeric
IP address of the target server (as provided by GoServe), and
the HOST: request header (if one exists).
* If SERVER is specified, and neither the numeric IP address
or the HOST: request header match the value of SERVER,
this entry will be ignored.
<strong>HOST</strong> <i>Optional</i>. The <b>host nickname</b> of the SERVER.
<em>If you are <b>not</b> serving multiple hosts,
you should <b>not</b> specify a SERVER variable.</em>
* HOST is only used to resolve REPLACE variables in
server side includes. If you specify a SERVER but
not a HOST, the "generic host" variables will be used.
* We highly recommend coordinating the values assigned to
SERVER, HOST, and DIR with the HOSTS. entries (in INITFILT.80)
<STRONG>USERS </STRONG> <I>Optional. </I> A space delimited list of allowed users.
* If the client did not provide a username, an authorization
request is sent back to the client.
* If this username is not in USERS, an authorization
request is sent back to the client.
* If this username is in USERS., then PWDS is also checked.
<STRONG>PWDS </STRONG> <I>Optional. </I> A list of allowed passwords, with each word in the list
paired with the corresponding word in USERS.
* Given that USERS is satfisfied,the appropriate word in PWDS is
compared against the password provided by the client.
* If this word does not match the password, then an
authorization request is sent back to the client.
* A value of * means "any password will do".
<STRONG>SSI </STRONG> <I>Optional.</I> If checked, then this entry contains server side includes.
* SREFAST uses "pre-compiled" cache files to handle most
server side includes.
* If SSI=1, then the SEL must NOT contain wildcards. That is,
SSI=1 entries must be specific to a single file.
<STRONG>MIME </STRONG> <I>Optional.</I> The Mime type of this request.
You can:
* Select one of the commonly used ones.
Note that <tt>generic</tt> is actually <tt>application/octet-stream</tt>.
* Let SRE-Filter determine it (choose <u>OTHER</u>, and leave the text field blank),
* Specify your own (choose <u>OTHER</u>, and fill in the text field).
<STRONG>NOCACHE </STRONG><EM>Optional</EM>. If checked, then this entry will NOT be cached by GoServe.
<STRONG>NORECORD </STRONG><I>Optional</I>. If checked, then this entry will not be recorded.
That is, no POST-Filter action will occur: no recording in
the RECORD_ALL file, no recording in the .LOG files, etc.
Otherwise, the entry WILL be recorded (using the standard
SRE-Filter mechanisms).
<STRONG>TRIGGER </STRONG> <EM>Optional</em>. If filled in, this should contain
the <b>fully qualified name</b> of a <u>trigger file</u>. When SREFAST
checks it's SSI cache, it always checks the file-stamp of the "own file";
and will not use the cache entry if the file stamp has changed. However, if
an INCLUDEd file has changed, SREFAST will <b>not</b> detect the change;
and will instead use the out-of-date cache entry. By using a
trigger file, you can specify one additional file-stamp to check (i.e.;
an INCLUDEd file).
</pre>
Note that when examining INITFAST (the configuration file), SREFAST will use the first
matching entry (starting from entry #1). Thus,
using a low number when <tt>adding an entry</tt> will give the entry
higher priority.<p>
<A HREF="#main">Return to Top </A>
<pre>
</pre>
<hr>
<!-- Replace servername -->
</body>
</html>