httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/docs/manual/mod core.html.en core.xml quickreference.html.en
Date Tue, 15 Oct 2002 02:51:42 GMT
nd          2002/10/14 19:51:42

  Modified:    docs/manual/mod core.html.en core.xml quickreference.html.en
  Log:
  discovered some useful stuff in the code,
  see: server/core.c:core_override_type
  
  Revision  Changes    Path
  1.38      +21 -2     httpd-2.0/docs/manual/mod/core.html.en
  
  Index: core.html.en
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/mod/core.html.en,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- core.html.en	14 Oct 2002 19:16:26 -0000	1.37
  +++ core.html.en	15 Oct 2002 02:51:41 -0000	1.38
  @@ -844,7 +844,7 @@
       request is received</li></ul></div><div class="top"><a href="#page-header"><img
alt="top" src="../images/up.gif" /></a></div><div class="directive-section"><h2><a
name="ForceType" id="ForceType">ForceType</a> <a name="forcetype" id="forcetype">Directive</a></h2><table
class="directive"><tr><th><a href="directive-dict.html#Description">Description:

                 </a></th><td>Forces all matching files to be served with
the specified
   MIME content-type</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
  -              </a></th><td><code>ForceType <var>MIME-type</var></code></td></tr><tr><th><a
href="directive-dict.html#Context">Context:
  +              </a></th><td><code>ForceType <var>MIME-type</var>|none</code></td></tr><tr><th><a
href="directive-dict.html#Context">Context:
                 </a></th><td>directory, .htaccess</td></tr><tr><th><a
href="directive-dict.html#Override">Override:
                 </a></th><td>FileInfo</td></tr><tr><th><a
href="directive-dict.html#Status">Status:
                 </a></th><td>Core</td></tr><tr><th><a
href="directive-dict.html#Module">Module:
  @@ -867,6 +867,25 @@
       <p>Note that unlike <code class="directive"><a href="#defaulttype">DefaultType</a></code>,
       this directive overrides all mime-type associations, including
       filename extensions, that might identify the media type.</p>
  +
  +    <p>You can override any <code class="directive">ForceType</code>
setting
  +    by using the value of <code>none</code>:</p>
  +
  +    <div class="example"><p><code>
  +      # force all files to be image/gif:<br />
  +      &lt;Location /images&gt;<br />
  +        <span class="indent">
  +          ForceType image/gif<br />
  +        </span>
  +      &lt;/Location&gt;<br />
  +      <br />
  +      # but normal mime-type associations here:<br />
  +      &lt;Location /images/mixed&gt;<br />
  +      <span class="indent">
  +        ForceType none<br />
  +      </span>
  +      &lt;/Location&gt;
  +    </code></p></div>
   </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"
/></a></div><div class="directive-section"><h2><a name="HostnameLookups"
id="HostnameLookups">HostnameLookups</a> <a name="hostnamelookups" id="hostnamelookups">Directive</a></h2><table
class="directive"><tr><th><a href="directive-dict.html#Description">Description:

                 </a></th><td>Enables DNS lookups on client IP addresses</td></tr><tr><th><a
href="directive-dict.html#Syntax">Syntax:
                 </a></th><td><code>HostnameLookups on|off|double</code></td></tr><tr><th><a
href="directive-dict.html#Default">Default: 
  @@ -2136,7 +2155,7 @@
   <h3>See also</h3><ul><li><code class="directive"><a href="#serversignature">ServerSignature</a></code></li></ul></div><div
class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div
class="directive-section"><h2><a name="SetHandler" id="SetHandler">SetHandler</a>
<a name="sethandler" id="sethandler">Directive</a></h2><table class="directive"><tr><th><a
href="directive-dict.html#Description">Description: 
                 </a></th><td>Forces all matching files to be processed
by a
   handler</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
  -              </a></th><td><code>SetHandler <var>handler-name</var></code></td></tr><tr><th><a
href="directive-dict.html#Context">Context:
  +              </a></th><td><code>SetHandler <var>handler-name</var>|none</code></td></tr><tr><th><a
href="directive-dict.html#Context">Context:
                 </a></th><td>server config, virtual host, directory, .htaccess</td></tr><tr><th><a
href="directive-dict.html#Override">Override:
                 </a></th><td>FileInfo</td></tr><tr><th><a
href="directive-dict.html#Status">Status:
                 </a></th><td>Core</td></tr><tr><th><a
href="directive-dict.html#Module">Module:
  
  
  
  1.37      +21 -2     httpd-2.0/docs/manual/mod/core.xml
  
  Index: core.xml
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/mod/core.xml,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- core.xml	14 Oct 2002 18:25:06 -0000	1.36
  +++ core.xml	15 Oct 2002 02:51:41 -0000	1.37
  @@ -961,7 +961,7 @@
   <name>ForceType</name>
   <description>Forces all matching files to be served with the specified
   MIME content-type</description>
  -<syntax>ForceType <var>MIME-type</var></syntax>
  +<syntax>ForceType <var>MIME-type</var>|none</syntax>
   <contextlist><context>directory</context><context>.htaccess</context>
   </contextlist>
   <override>FileInfo</override>
  @@ -985,6 +985,25 @@
       <p>Note that unlike <directive module="core">DefaultType</directive>,
       this directive overrides all mime-type associations, including
       filename extensions, that might identify the media type.</p>
  +
  +    <p>You can override any <directive>ForceType</directive> setting
  +    by using the value of <code>none</code>:</p>
  +
  +    <example>
  +      # force all files to be image/gif:<br />
  +      &lt;Location /images&gt;<br />
  +        <indent>
  +          ForceType image/gif<br />
  +        </indent>
  +      &lt;/Location&gt;<br />
  +      <br />
  +      # but normal mime-type associations here:<br />
  +      &lt;Location /images/mixed&gt;<br />
  +      <indent>
  +        ForceType none<br />
  +      </indent>
  +      &lt;/Location&gt;
  +    </example>
   </usage>
   </directivesynopsis>
   
  @@ -2480,7 +2499,7 @@
   <name>SetHandler</name>
   <description>Forces all matching files to be processed by a
   handler</description>
  -<syntax>SetHandler <var>handler-name</var></syntax>
  +<syntax>SetHandler <var>handler-name</var>|none</syntax>
   <contextlist><context>server config</context><context>virtual host</context>
   <context>directory</context><context>.htaccess</context>
   </contextlist>
  
  
  
  1.15      +2 -2      httpd-2.0/docs/manual/mod/quickreference.html.en
  
  Index: quickreference.html.en
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/mod/quickreference.html.en,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- quickreference.html.en	14 Oct 2002 19:16:27 -0000	1.14
  +++ quickreference.html.en	15 Oct 2002 02:51:41 -0000	1.15
  @@ -258,7 +258,7 @@
   filenames</td></tr>
   <tr><td><a href="mod_negotiation.html#forcelanguagepriority">ForceLanguagePriority
None|Prefer|Fallback [Prefer|Fallback]</a></td><td> Prefer </td><td>svdh</td><td>B</td></tr><tr><td
class="descr" colspan="4">Action to take if a single acceptable document is not 
   found</td></tr>
  -<tr class="odd"><td><a href="core.html#forcetype">ForceType <var>MIME-type</var></a></td><td
/><td>dh</td><td>C</td></tr><tr class="odd"><td
class="descr" colspan="4">Forces all matching files to be served with the specified
  +<tr class="odd"><td><a href="core.html#forcetype">ForceType <var>MIME-type</var>|none</a></td><td
/><td>dh</td><td>C</td></tr><tr class="odd"><td
class="descr" colspan="4">Forces all matching files to be served with the specified
   MIME content-type</td></tr>
   <tr><td><a href="mpm_common.html#group" id="G" name="G">Group <em>unix-group</em></a></td><td>
#-1 </td><td>sv</td><td>M</td></tr><tr><td class="descr"
colspan="4">Group under which the server will answer
   requests</td></tr>
  @@ -512,7 +512,7 @@
           [!]env-variable</em>[=<em>value</em>]
       [[!]<em>env-variable</em>[=<em>value</em>]] ...</a></td><td
/><td>svdh</td><td>B</td></tr><tr class="odd"><td
class="descr" colspan="4">Sets environment variables based on attributes of the request
   without respect to case</td></tr>
  -<tr><td><a href="core.html#sethandler">SetHandler <var>handler-name</var></a></td><td
/><td>svdh</td><td>C</td></tr><tr><td class="descr"
colspan="4">Forces all matching files to be processed by a
  +<tr><td><a href="core.html#sethandler">SetHandler <var>handler-name</var>|none</a></td><td
/><td>svdh</td><td>C</td></tr><tr><td class="descr"
colspan="4">Forces all matching files to be processed by a
   handler</td></tr>
   <tr class="odd"><td><a href="core.html#setinputfilter">SetInputFilter
<var>filter</var>[;<var>filter</var>...]</a></td><td
/><td>svdh</td><td>C</td></tr><tr class="odd"><td
class="descr" colspan="4">Sets the filters that will process client requests and POST
   input</td></tr>
  
  
  

Mime
View raw message