]> granicus.if.org Git - apache/commitdiff
Consistency enforcement for directives that take extensions and a
authorJoshua Slive <slive@apache.org>
Sat, 2 Dec 2000 21:39:03 +0000 (21:39 +0000)
committerJoshua Slive <slive@apache.org>
Sat, 2 Dec 2000 21:39:03 +0000 (21:39 +0000)
reformat of mod_isapi.html into the new standard format.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87157 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/content-negotiation.html
docs/manual/content-negotiation.html.en
docs/manual/handler.html
docs/manual/handler.html.en
docs/manual/misc/FAQ-F.html
docs/manual/mod/mod_isapi.html
docs/manual/mod/mod_mime.html

index 7bfaee5afa9fd2d95f58e3517738dfebcac8deb2..d6ffef8e812f330923aa1841190a1fdbc95416d9 100644 (file)
@@ -111,7 +111,7 @@ you must have a handler set in the configuration that defines a
 file suffix as <CODE>type-map</CODE>; this is best done with a
 
 <PRE>
-  AddHandler type-map var
+  AddHandler type-map .var
 </PRE>
 
 in the server configuration file.  See the comments in the sample config
index 7bfaee5afa9fd2d95f58e3517738dfebcac8deb2..d6ffef8e812f330923aa1841190a1fdbc95416d9 100644 (file)
@@ -111,7 +111,7 @@ you must have a handler set in the configuration that defines a
 file suffix as <CODE>type-map</CODE>; this is best done with a
 
 <PRE>
-  AddHandler type-map var
+  AddHandler type-map .var
 </PRE>
 
 in the server configuration file.  See the comments in the sample config
index 1dbad4256ea1ff4c16a17e252826183ab91806b8..357ec0e77e979185d314689325bcff9741b08143 100644 (file)
@@ -108,7 +108,7 @@ handlers in the standard distribution are as follows:</P>
 
 <pre>
      Action add-footer /cgi-bin/footer.pl
-     AddHandler add-footer html
+     AddHandler add-footer .html
 </pre>
 
 <p>Then the CGI script is responsible for sending the originally
index 1dbad4256ea1ff4c16a17e252826183ab91806b8..357ec0e77e979185d314689325bcff9741b08143 100644 (file)
@@ -108,7 +108,7 @@ handlers in the standard distribution are as follows:</P>
 
 <pre>
      Action add-footer /cgi-bin/footer.pl
-     AddHandler add-footer html
+     AddHandler add-footer .html
 </pre>
 
 <p>Then the CGI script is responsible for sending the originally
index 143fded47def622dd66bba9dba24e0a41e9db69a..7acb96e5169cbfd57ee813f8ff9823f4a50ebef0 100644 (file)
@@ -31,7 +31,7 @@
   <!--#include virtual="header.html" -->
   <H1 ALIGN="CENTER">Apache Server Frequently Asked Questions</H1>
   <P>
-  $Revision: 1.6 $ ($Date: 2000/09/15 19:54:16 $)
+  $Revision: 1.7 $ ($Date: 2000/12/02 21:39:03 $)
   </P>
   <P>
   The latest version of this FAQ is always available from the main
     a line such as
     <P>
     <DL>
-     <DD><CODE>AddHandler cgi-script cgi</CODE>
+     <DD><CODE>AddHandler cgi-script .cgi</CODE>
      </DD>
     </DL>
     <P></P>
index aefeb4d95041252575bbd9399352f615940a733e..2e65758ee013c8fd88e27c502367f1dc808be18d 100644 (file)
@@ -51,6 +51,15 @@ REL="Help"
    problems running their ISAPI extention.  <STRONG>Please <EM>do not</EM> 
    post such problems to Apache's lists or bug reporting pages.</STRONG></P>
 
+<H2>Directives</H2>
+<UL>
+<LI><A HREF="#isapifilecache">ISAPIFileCache</A>
+<LI><A HREF="#isapireadaheadbuffer">ISAPIReadAheadBuffer</A>
+<LI><A HREF="#isapilognotsupported">ISAPILogNotSupported</A>
+<LI><A HREF="#isapiappendlogtoerrors">ISAPIAppendLogToErrors</A>
+<LI><A HREF="#isapiappendlogtoquery">ISAPIAppendLogToQuery</A>
+</UL>
+
 <H2>Usage</H2>
 
 <P>In the server configuration file, use the AddHandler directive to
@@ -60,7 +69,7 @@ REL="Help"
    following line:</P>
 
 <PRE>
-    AddHandler isapi-isa dll
+    AddHandler isapi-isa .dll
 </PRE>
 
 <P>There is no capability within the Apache server to leave a requested
@@ -80,14 +89,101 @@ REL="Help"
    <A HREF="#journal">Programmer's Journal</A> for additional details and
    clarification of the specific ISAPI support offered by mod_isapi.</P>
 
-<H2>Directives</H2>
-<UL>
-<LI><A HREF="#isapifilecache">ISAPIFileCache</A>
-<LI><A HREF="#isapireadaheadbuffer">ISAPIReadAheadBuffer</A>
-<LI><A HREF="#isapilognotsupported">ISAPILogNotSupported</A>
-<LI><A HREF="#isapiappendlogtoerrors">ISAPIAppendLogToErrors</A>
-<LI><A HREF="#isapiappendlogtoquery">ISAPIAppendLogToQuery</A>
-</UL>
+<H2><A NAME="notes">Additional Notes</A></H2>
+
+<P>Apache's ISAPI implementation conforms to all of the ISAPI 2.0
+   specification, except for some "Microsoft-specific" extensions dealing
+   with asynchronous I/O. Apache's I/O model does not allow asynchronous
+   reading and writing in a manner that the ISAPI could access. If an ISA
+   tries to access unsupported features, including async I/O, a message is
+   placed in the error log to help with debugging. Since these messages
+   can become a flood, the directive <CODE>ISAPILogNotSupported Off</CODE>
+   exists to quiet this noise.</P>
+
+<P>Some servers, like Microsoft IIS, load the ISAPI extension into the server
+   and keep it loaded until memory usage is too high, or unless configuration
+   options are specified.  Apache currently loads and unloads the ISAPI
+   extension each time it is requested, unless the ISAPICacheFile directive
+   is specified.  This is inefficient, but Apache's memory model makes this
+   the most effective method.  Many ISAPI modules are subtly incompatible 
+   with the Apache server, and unloading these modules helps to ensure the
+   stability of the server.</P>
+
+<P>Also, remember that while Apache supports ISAPI Extensions, it 
+   <STRONG>does not support ISAPI Filters.</STRONG>  Support for filters may 
+   be added at a later date, but no support is planned at this time.</P>
+
+<H2><A NAME="journal">Programmer's Journal</A></H2>
+
+<P>If you are programming Apache 2.0 mod_isapi modules, you must limit your
+   calls to ServerSupportFunction to the following directives:</P>
+
+<DL>
+  <DT>HSE_REQ_SEND_URL_REDIRECT_RESP
+    <DD>Redirect the user to another location.<BR>
+        This must be a fully qualified URL (e.g. http://server/location).
+  <DT>HSE_REQ_SEND_URL
+    <DD>Redirect the user to another location.<BR>
+        This cannot be a fully qualified URL, you are not allowed
+        to pass the protocol or a server name (e.g. simply /location).<BR>
+        This redirection is handled by the server, not the browser.<BR>
+        <STRONG>Warning:</STRONG> in their recent documentation, Microsoft 
+        appears to have abandoned the distinction between the two 
+        HSE_REQ_SEND_URL functions.  Apache continues to treat them as two 
+        distinct functions with different requirements and behaviors.
+  <DT>HSE_REQ_SEND_RESPONSE_HEADER
+    <DD>Apache accepts a response body following the header if it follows
+        the blank line (two consecutive newlines) in the headers string 
+        argument.  This body cannot contain NULLs, since the headers
+        argument is NULL terminated.
+  <DT>HSE_REQ_DONE_WITH_SESSION
+    <DD>Apache considers this a no-op, since the session will be finished
+        when the ISAPI returns from processing.
+  <DT>HSE_REQ_MAP_URL_TO_PATH
+    <DD>Apache will translate a virtual name to a physical name.
+  <DT>HSE_APPEND_LOG_PARAMETER
+    <DD>This logged message may be captured in any of the following logs:
+      <UL>
+        <LI>in the \"%{isapi-parameter}n\" component in a CustomLog directive
+        <LI>in the %q log component with the ISAPIAppendLogToQuery On directive
+        <LI>in the error log with the ISAPIAppendLogToErrors On directive
+      </UL>
+        The first option, the %{isapi-parameter}n component, is always available
+        and prefered.
+  <DT>HSE_REQ_IS_KEEP_CONN
+    <DD>Will return the negotiated Keep-Alive status.
+  <DT>HSE_REQ_SEND_RESPONSE_HEADER_EX
+    <DD>Will behave as documented, although the fKeepConn flag is ignored.
+  <DT>HSE_REQ_IS_CONNECTED
+    <DD>Will report false if the request has been aborted.
+</DL>
+
+<P>Apache returns FALSE to any unsupported call to ServerSupportFunction, and
+   sets the GetLastError value to ERROR_INVALID_PARAMETER.</P>
+
+<P>ReadClient retrieves the request body exceeding the initial buffer 
+   (defined by ISAPIReadAheadBuffer).  Based on the ISAPIReadAheadBuffer 
+   setting (number of bytes to buffer prior to calling the ISAPI handler) 
+   shorter requests are sent complete to the extension when it is invoked.
+   If the request is longer, the ISAPI extension must use ReadClient to
+   retrieve the remaining request body.</P>
+
+<P>WriteClient is supported, but only with the HSE_IO_SYNC flag or
+   no option flag (value of 0).  Any other WriteClient request will
+   be rejected with a return value of FALSE, and a GetLastError
+   value of ERROR_INVALID_PARAMETER.</P>
+
+<P>GetServerVariable is supported, although extended server variables do not
+   exist (as defined by other servers.)  All the usual Apache CGI environment 
+   variables are available from GetServerVariable, as well as the ALL_HTTP 
+   and ALL_RAW values.</P>
+
+<P>Apache 2.0 mod_isapi supports additional features introduced in later
+   versions of the ISAPI specification, as well as limited emulation of
+   async I/O and the TransmitFile semantics.  Apache also supports preloading
+   ISAPI .dlls for performance, neither of which were not available under
+   Apache 1.3 mod_isapi.</P>
+
 <HR>
 
 <H2><A NAME="isapifilecache">ISAPIFileCache directive</A></H2>
@@ -274,102 +370,7 @@ REL="Help"
         Record HSE_APPEND_LOG_PARAMETER requests from ISAPI extentions
         to the query field (appended to the CustomLog %q component).
         <P>
-<HR>
-
-<H2><A NAME="notes">Additional Notes</A></H2>
-
-<P>Apache's ISAPI implementation conforms to all of the ISAPI 2.0
-   specification, except for some "Microsoft-specific" extensions dealing
-   with asynchronous I/O. Apache's I/O model does not allow asynchronous
-   reading and writing in a manner that the ISAPI could access. If an ISA
-   tries to access unsupported features, including async I/O, a message is
-   placed in the error log to help with debugging. Since these messages
-   can become a flood, the directive <CODE>ISAPILogNotSupported Off</CODE>
-   exists to quiet this noise.</P>
-
-<P>Some servers, like Microsoft IIS, load the ISAPI extension into the server
-   and keep it loaded until memory usage is too high, or unless configuration
-   options are specified.  Apache currently loads and unloads the ISAPI
-   extension each time it is requested, unless the ISAPICacheFile directive
-   is specified.  This is inefficient, but Apache's memory model makes this
-   the most effective method.  Many ISAPI modules are subtly incompatible 
-   with the Apache server, and unloading these modules helps to ensure the
-   stability of the server.</P>
-
-<P>Also, remember that while Apache supports ISAPI Extensions, it 
-   <STRONG>does not support ISAPI Filters.</STRONG>  Support for filters may 
-   be added at a later date, but no support is planned at this time.</P>
 
-<H2><A NAME="journal">Programmer's Journal</A></H2>
-
-<P>If you are programming Apache 2.0 mod_isapi modules, you must limit your
-   calls to ServerSupportFunction to the following directives:</P>
-
-<DL>
-  <DT>HSE_REQ_SEND_URL_REDIRECT_RESP
-    <DD>Redirect the user to another location.<BR>
-        This must be a fully qualified URL (e.g. http://server/location).
-  <DT>HSE_REQ_SEND_URL
-    <DD>Redirect the user to another location.<BR>
-        This cannot be a fully qualified URL, you are not allowed
-        to pass the protocol or a server name (e.g. simply /location).<BR>
-        This redirection is handled by the server, not the browser.<BR>
-        <STRONG>Warning:</STRONG> in their recent documentation, Microsoft 
-        appears to have abandoned the distinction between the two 
-        HSE_REQ_SEND_URL functions.  Apache continues to treat them as two 
-        distinct functions with different requirements and behaviors.
-  <DT>HSE_REQ_SEND_RESPONSE_HEADER
-    <DD>Apache accepts a response body following the header if it follows
-        the blank line (two consecutive newlines) in the headers string 
-        argument.  This body cannot contain NULLs, since the headers
-        argument is NULL terminated.
-  <DT>HSE_REQ_DONE_WITH_SESSION
-    <DD>Apache considers this a no-op, since the session will be finished
-        when the ISAPI returns from processing.
-  <DT>HSE_REQ_MAP_URL_TO_PATH
-    <DD>Apache will translate a virtual name to a physical name.
-  <DT>HSE_APPEND_LOG_PARAMETER
-    <DD>This logged message may be captured in any of the following logs:
-      <UL>
-        <LI>in the \"%{isapi-parameter}n\" component in a CustomLog directive
-        <LI>in the %q log component with the ISAPIAppendLogToQuery On directive
-        <LI>in the error log with the ISAPIAppendLogToErrors On directive
-      </UL>
-        The first option, the %{isapi-parameter}n component, is always available
-        and prefered.
-  <DT>HSE_REQ_IS_KEEP_CONN
-    <DD>Will return the negotiated Keep-Alive status.
-  <DT>HSE_REQ_SEND_RESPONSE_HEADER_EX
-    <DD>Will behave as documented, although the fKeepConn flag is ignored.
-  <DT>HSE_REQ_IS_CONNECTED
-    <DD>Will report false if the request has been aborted.
-</DL>
-
-<P>Apache returns FALSE to any unsupported call to ServerSupportFunction, and
-   sets the GetLastError value to ERROR_INVALID_PARAMETER.</P>
-
-<P>ReadClient retrieves the request body exceeding the initial buffer 
-   (defined by ISAPIReadAheadBuffer).  Based on the ISAPIReadAheadBuffer 
-   setting (number of bytes to buffer prior to calling the ISAPI handler) 
-   shorter requests are sent complete to the extension when it is invoked.
-   If the request is longer, the ISAPI extension must use ReadClient to
-   retrieve the remaining request body.</P>
-
-<P>WriteClient is supported, but only with the HSE_IO_SYNC flag or
-   no option flag (value of 0).  Any other WriteClient request will
-   be rejected with a return value of FALSE, and a GetLastError
-   value of ERROR_INVALID_PARAMETER.</P>
-
-<P>GetServerVariable is supported, although extended server variables do not
-   exist (as defined by other servers.)  All the usual Apache CGI environment 
-   variables are available from GetServerVariable, as well as the ALL_HTTP 
-   and ALL_RAW values.</P>
-
-<P>Apache 2.0 mod_isapi supports additional features introduced in later
-   versions of the ISAPI specification, as well as limited emulation of
-   async I/O and the TransmitFile semantics.  Apache also supports preloading
-   ISAPI .dlls for performance, neither of which were not available under
-   Apache 1.3 mod_isapi.</P>
 <!--#include virtual="footer.html" -->
 </BODY>
 </HTML>
index ef3d31bd6c9dbed79668c4359cf582651eee7c3f..2e33f9016de4d51d63d7b380d1b4060cd5b7aebb 100644 (file)
@@ -46,7 +46,7 @@ which determines how the document will be processed within the server.
 
 The directives <a href="#addcharset">AddCharset</a>,
 <A HREF="#addencoding">AddEncoding</A>, <A HREF="#addhandler">AddHandler</A>,
-A HREF="#SetFilter">SetFilter</A>, <A HREF="#addlanguage">AddLanguage</A> 
+<A HREF="#SetFilter">SetFilter</A>, <A HREF="#addlanguage">AddLanguage</A> 
 and <A HREF="#addtype">AddType</A> are all used to map file extensions onto 
 the meta-information for that file.  Respectively they set the character set,
 content-encoding, handler, content-language, and MIME-type (content-type) of 
@@ -163,6 +163,10 @@ for <A HREF="../content-negotiation.html">content negotiation</A>, where
 the server returns one from several documents based on the client's
 charset preference.
 </P>
+
+<p>The <em>extension</em> argument is case-insensitive, and can
+be specified with or without a leading dot.</p>
+
 <P>
 <STRONG>See also</STRONG>: <A HREF="mod_negotiation.html">mod_negotiation</A>
 </P>
@@ -199,7 +203,9 @@ to any already in force, overriding any mappings that already exist
 for the same <EM>extension</EM>.
 
 Example:
-<BLOCKQUOTE><CODE> AddEncoding x-gzip gz<BR> AddEncoding x-compress Z
+<BLOCKQUOTE><CODE>
+AddEncoding x-gzip .gz<BR> 
+AddEncoding x-compress .Z
 </CODE></BLOCKQUOTE>
 
 This will cause filenames containing the .gz extension to be marked as
@@ -218,6 +224,9 @@ you should always use <CODE>x-gzip</CODE> and <CODE>x-compress</CODE>
 for these two specific encodings.  More recent encodings, such as
 <CODE>deflate</CODE> should be specified without the <CODE>x-</CODE>.
 
+<p>The <em>extension</em> argument is case-insensitive, and can
+be specified with or without a leading dot.</p>
+
 <P>
 
 <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
@@ -256,13 +265,16 @@ already exist for the same <EM>extension</EM>.
 For example, to activate CGI scripts
 with the file extension "<CODE>.cgi</CODE>", you might use:
 <PRE>
-    AddHandler cgi-script cgi
+    AddHandler cgi-script .cgi
 </PRE>
 
 <P>Once that has been put into your srm.conf or httpd.conf file, any
 file containing the "<CODE>.cgi</CODE>" extension will be treated as a
 CGI program.</P> 
 
+<p>The <em>extension</em> argument is case-insensitive, and can
+be specified with or without a leading dot.</p>
+
 <P>
 
 <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
@@ -302,7 +314,7 @@ same <EM>extension</EM>.
 </P>
 <P>
 Example: <BLOCKQUOTE><CODE>
-AddEncoding x-compress Z<BR> AddLanguage en .en<BR> AddLanguage fr
+AddEncoding x-compress .Z<BR> AddLanguage en .en<BR> AddLanguage fr
 .fr<BR> </CODE></BLOCKQUOTE>
 </P>
 <P>
@@ -329,6 +341,10 @@ case of:
 documents with the extension "<CODE>.en</CODE>" would be treated as
 being "<CODE>en-us</CODE>".
 </P>
+
+<p>The <em>extension</em> argument is case-insensitive, and can
+be specified with or without a leading dot.</p>
+
 <P>
 <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
 multiple extensions</A>
@@ -425,13 +441,16 @@ HREF="#typesconfig">TypesConfig</A></CODE> directive).
 
 Example:
 <BLOCKQUOTE><CODE>
-AddType image/gif GIF
+AddType image/gif .gif
 </CODE></BLOCKQUOTE>
 It is recommended that new MIME types be added using the AddType directive
 rather than changing the <A HREF="#typesconfig">TypesConfig</A> file.<P>
 Note that, unlike the NCSA httpd, this directive cannot be used to set the
 type of particular files.<P>
 
+<p>The <em>extension</em> argument is case-insensitive, and can
+be specified with or without a leading dot.</p>
+
 <P>
 
 <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
@@ -559,6 +578,9 @@ This has the effect of returning <SAMP>.html</SAMP> files in the
 files, rather than as candidates for parsing (see the
 <A HREF="mod_include.html"><SAMP>mod_include</SAMP></A> module).
 </P>
+<p>The <em>extension</em> argument is case-insensitive, and can
+be specified with or without a leading dot.</p>
+
 <HR>
 
 <H2><A NAME="sethandler">SetHandler</A> directive</H2>