From dccee7341300618672133ee277f2cb2ecf76ae7e Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Sun, 2 Oct 2005 20:59:13 +0000 Subject: [PATCH] Use the H flag to force cgi's to be handled as cgi-script. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@293166 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/vhosts/mass.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/manual/vhosts/mass.xml b/docs/manual/vhosts/mass.xml index f430ff6109..a6bd6df1de 100644 --- a/docs/manual/vhosts/mass.xml +++ b/docs/manual/vhosts/mass.xml @@ -352,9 +352,9 @@ RewriteCond %{REQUEST_URI} !^/cgi-bin/
# do the magic
RewriteRule ^/(.*)$ /www/hosts/${lowercase:%{SERVER_NAME}}/docs/$1

-## and now deal with CGIs - we have to force a MIME type
+## and now deal with CGIs - we have to force a handler
RewriteCond %{REQUEST_URI} ^/cgi-bin/
-RewriteRule ^/(.*)$ /www/hosts/${lowercase:%{SERVER_NAME}}/cgi-bin/$1 [T=application/x-httpd-cgi]
+RewriteRule ^/(.*)$ /www/hosts/${lowercase:%{SERVER_NAME}}/cgi-bin/$1 [H=cgi-script]

# that's it! @@ -430,7 +430,7 @@ RewriteRule ^/(.*)$ %1/docs/$1
RewriteCond %{REQUEST_URI} ^/cgi-bin/
RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$
RewriteCond ${vhost:%1} ^(/.*)$
-RewriteRule ^/(.*)$ %1/cgi-bin/$1 +RewriteRule ^/(.*)$ %1/cgi-bin/$1 [H=cgi-script] -- 2.40.0