From: Rich Bowen Date: Sun, 2 Oct 2005 20:59:13 +0000 (+0000) Subject: Use the H flag to force cgi's to be handled as cgi-script. X-Git-Tag: 2.3.0~2923 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dccee7341300618672133ee277f2cb2ecf76ae7e;p=apache 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 --- 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]