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 mod_rewrite.html.en mod_rewrite.xml
Date Sat, 24 Jan 2004 22:23:02 GMT
nd          2004/01/24 14:23:02

  Modified:    docs/manual/mod mod_rewrite.html.en mod_rewrite.xml
  Log:
  document [handler=...] and adjust [type=...]
  
  Revision  Changes    Path
  1.30      +16 -2     httpd-2.0/docs/manual/mod/mod_rewrite.html.en
  
  Index: mod_rewrite.html.en
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/mod/mod_rewrite.html.en,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -u -r1.29 -r1.30
  --- mod_rewrite.html.en	24 Jan 2004 02:25:29 -0000	1.29
  +++ mod_rewrite.html.en	24 Jan 2004 22:23:02 -0000	1.30
  @@ -1479,10 +1479,24 @@
           (force MIME <strong>t</strong>ype)<br />
            Force the MIME-type of the target file to be
           <em>MIME-type</em>. For instance, this can be used to
  +        setup the content-type based on some conditions.
  +        For example, the following snippet allows <code>.php</code> files to
  +        be <em>displayed</em> by <code>mod_php</code> if they are
called with
  +        the <code>.phps</code> extension:
  +        <div class="example"><p><code>
  +            RewriteRule ^(.+\.php)s$ $1 [T=application/x-httpd-php-source]
  +        </code></p></div>
  +        </li>
  +
  +        <li>
  +        '<strong><code>handler|H</code></strong>=<em>Content-handler</em>'
  +        (force Content <strong>h</strong>andler)<br />
  +         Force the Content-handler of the target file to be
  +        <em>Content-handler</em>. For instance, this can be used to
           simulate the <code>mod_alias</code> directive
           <code>ScriptAlias</code> which internally forces all files
  -        inside the mapped directory to have a MIME type of
  -        ``<code>application/x-httpd-cgi</code>''.</li>
  +        inside the mapped directory to have a handler of
  +        ``<code>cgi-script</code>''.</li>
   
           <li>
             '<strong><code>nosubreq|NS</code></strong>' (used only
if
  
  
  
  1.21      +16 -2     httpd-2.0/docs/manual/mod/mod_rewrite.xml
  
  Index: mod_rewrite.xml
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/mod/mod_rewrite.xml,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -u -r1.20 -r1.21
  --- mod_rewrite.xml	24 Jan 2004 02:25:29 -0000	1.20
  +++ mod_rewrite.xml	24 Jan 2004 22:23:02 -0000	1.21
  @@ -1481,10 +1481,24 @@
           (force MIME <strong>t</strong>ype)<br />
            Force the MIME-type of the target file to be
           <em>MIME-type</em>. For instance, this can be used to
  +        setup the content-type based on some conditions.
  +        For example, the following snippet allows <code>.php</code> files to
  +        be <em>displayed</em> by <code>mod_php</code> if they are
called with
  +        the <code>.phps</code> extension:
  +        <example>
  +            RewriteRule ^(.+\.php)s$ $1 [T=application/x-httpd-php-source]
  +        </example>
  +        </li>
  +
  +        <li>
  +        '<strong><code>handler|H</code></strong>=<em>Content-handler</em>'
  +        (force Content <strong>h</strong>andler)<br />
  +         Force the Content-handler of the target file to be
  +        <em>Content-handler</em>. For instance, this can be used to
           simulate the <code>mod_alias</code> directive
           <code>ScriptAlias</code> which internally forces all files
  -        inside the mapped directory to have a MIME type of
  -        ``<code>application/x-httpd-cgi</code>''.</li>
  +        inside the mapped directory to have a handler of
  +        ``<code>cgi-script</code>''.</li>
   
           <li>
             '<strong><code>nosubreq|NS</code></strong>' (used only
if
  
  
  

Mime
View raw message