From acc3cfb663fef26f4cd6d9a56a6a552f2a4e2017 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Malo?= Date: Sat, 24 Jan 2004 22:23:02 +0000 Subject: [PATCH] document [handler=...] and adjust [type=...] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102402 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_rewrite.html.en | 18 ++++++++++++++++-- docs/manual/mod/mod_rewrite.xml | 18 ++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index a826895844..1dc835cc22 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -1479,10 +1479,24 @@ There is a special feature: (force MIME type)
Force the MIME-type of the target file to be MIME-type. For instance, this can be used to + setup the content-type based on some conditions. + For example, the following snippet allows .php files to + be displayed by mod_php if they are called with + the .phps extension: +

+ RewriteRule ^(.+\.php)s$ $1 [T=application/x-httpd-php-source] +

+ + +
  • + 'handler|H=Content-handler' + (force Content handler)
    + Force the Content-handler of the target file to be + Content-handler. For instance, this can be used to simulate the mod_alias directive ScriptAlias which internally forces all files - inside the mapped directory to have a MIME type of - ``application/x-httpd-cgi''.
  • + inside the mapped directory to have a handler of + ``cgi-script''.
  • 'nosubreq|NS' (used only if diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 4cc8878ea4..efff47a4da 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -1481,10 +1481,24 @@ There is a special feature: (force MIME type)
    Force the MIME-type of the target file to be MIME-type. For instance, this can be used to + setup the content-type based on some conditions. + For example, the following snippet allows .php files to + be displayed by mod_php if they are called with + the .phps extension: + + RewriteRule ^(.+\.php)s$ $1 [T=application/x-httpd-php-source] + +
  • + +
  • + 'handler|H=Content-handler' + (force Content handler)
    + Force the Content-handler of the target file to be + Content-handler. For instance, this can be used to simulate the mod_alias directive ScriptAlias which internally forces all files - inside the mapped directory to have a MIME type of - ``application/x-httpd-cgi''.
  • + inside the mapped directory to have a handler of + ``cgi-script''.
  • 'nosubreq|NS' (used only if -- 2.50.1