httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_core.c
Date Tue, 21 Mar 2000 18:28:27 GMT
fanf        00/03/21 10:28:27

  Modified:    htdocs/manual/mod core.html
               src/main http_core.c
  Log:
  Explain the changed ErrorDocument syntax.
  
  Revision  Changes    Path
  1.167     +15 -14    apache-2.0/htdocs/manual/mod/core.html
  
  Index: core.html
  ===================================================================
  RCS file: /home/cvs/apache-2.0/htdocs/manual/mod/core.html,v
  retrieving revision 1.166
  retrieving revision 1.167
  diff -u -r1.166 -r1.167
  --- core.html	2000/02/28 13:42:23	1.166
  +++ core.html	2000/03/21 18:28:26	1.167
  @@ -794,7 +794,8 @@
    HREF="directive-dict.html#Compatibility"
    REL="Help"
   ><STRONG>Compatibility:</STRONG></A> The directory and .htaccess contexts
  -are only available in Apache 1.1 and later.<P>
  +are only available in Apache 1.1 and later. The quoting syntax prior to
  +Apache 2.0 was different.<P>
   
   In the event of a problem or error, Apache can be configured to do
   one of four things,
  @@ -808,30 +809,30 @@
   
   <P>The first option is the default, while options 2-4 are configured
   using the <CODE>ErrorDocument</CODE> directive, which is followed by
  -the HTTP response code and a message or URL.
  +the HTTP response code and a URL or a message. Apache will sometimes
  +offer additional information regarding the problem/error.
   
  -<P><EM>Messages</EM> in this context begin with a single quote
  -(<CODE>"</CODE>), which does not form part of the message itself.
  -Apache will sometimes offer additional information regarding the
  -problem/error.
  -
   <P>URLs can begin with a slash (/) for local URLs, or be a full
  -URL which the client can resolve. Examples:
  +URL which the client can resolve. Alternatively, a message can be
  +provided to be displayed by the browser. Examples:
   <BLOCKQUOTE><CODE>
   ErrorDocument 500 http://foo.example.com/cgi-bin/tester<BR>
   ErrorDocument 404 /cgi-bin/bad_urls.pl<BR>
   ErrorDocument 401 /subscription_info.html<BR>
  -ErrorDocument 403 "Sorry can't allow you access today
  +ErrorDocument 403 &quot;Sorry can't allow you access today&quot;
   </CODE></BLOCKQUOTE>
   
   <P>Note that when you specify an <CODE>ErrorDocument</CODE> that
   points to a remote URL (ie. anything with a method such as "http" in
   front of it) Apache will send a redirect to the client to tell it
  -where to find the document, even if the document ends up being
  -on the same server..  This has several implications, the
  -most important being that <STRONG>if you use an "ErrorDocument 401"
  -directive then it must refer to a local document.</STRONG>  This results
  -from the nature of the HTTP basic authentication scheme.
  +where to find the document, even if the document ends up being on the
  +same server. This has several implications, the most important being
  +that <STRONG>if you use an "ErrorDocument 401" directive then it must
  +refer to a local document.</STRONG> This results from the nature of
  +the HTTP basic authentication scheme.
  +
  +<P>Prior to version 2.0, messages were indicated by prefixing them
  +with a single unmatched double quote character.
   
   <P>See Also: <A HREF="../custom-error.html">documentation of customizable
   responses.</A><P><HR>
  
  
  
  1.40      +0 -1      apache-2.0/src/main/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_core.c,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- http_core.c	2000/03/15 23:18:31	1.39
  +++ http_core.c	2000/03/21 18:28:27	1.40
  @@ -2340,7 +2340,6 @@
     "Name(s) of per-directory config files (default: .htaccess)" },
   { "DocumentRoot", set_document_root, NULL, RSRC_CONF, TAKE1,
     "Root directory of the document tree"  },
  -/* TODOC: ErrorDocument no longer has silly quoting semantics */
   { "ErrorDocument", set_error_document, NULL, OR_FILEINFO, TAKE2,
     "Change responses for HTTP errors" },
   { "AllowOverride", set_override, NULL, ACCESS_CONF, RAW_ARGS,
  
  
  

Mime
View raw message