]> granicus.if.org Git - apache/commitdiff
Use the H flag to force cgi's to be handled as cgi-script.
authorRich Bowen <rbowen@apache.org>
Sun, 2 Oct 2005 20:59:13 +0000 (20:59 +0000)
committerRich Bowen <rbowen@apache.org>
Sun, 2 Oct 2005 20:59:13 +0000 (20:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@293166 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/vhosts/mass.xml

index f430ff6109788db8944acc0bc15246a0c841dedc..a6bd6df1defaf31c6fa629fc8e7378e700c896ec 100644 (file)
@@ -352,9 +352,9 @@ RewriteCond  %{REQUEST_URI}  !^/cgi-bin/<br />
 # do the magic<br />
 RewriteRule  ^/(.*)$  /www/hosts/${lowercase:%{SERVER_NAME}}/docs/$1<br />
 <br />
-## and now deal with CGIs - we have to force a MIME type<br />
+## and now deal with CGIs - we have to force a handler<br />
 RewriteCond  %{REQUEST_URI}  ^/cgi-bin/<br />
-RewriteRule  ^/(.*)$  /www/hosts/${lowercase:%{SERVER_NAME}}/cgi-bin/$1  [T=application/x-httpd-cgi]<br />
+RewriteRule  ^/(.*)$  /www/hosts/${lowercase:%{SERVER_NAME}}/cgi-bin/$1  [H=cgi-script]<br />
 <br />
 # that's it!
 </example>
@@ -430,7 +430,7 @@ RewriteRule  ^/(.*)$                      %1/docs/$1<br />
 RewriteCond  %{REQUEST_URI}               ^/cgi-bin/<br />
 RewriteCond  ${lowercase:%{SERVER_NAME}}  ^(.+)$<br />
 RewriteCond  ${vhost:%1}                  ^(/.*)$<br />
-RewriteRule  ^/(.*)$                      %1/cgi-bin/$1
+RewriteRule  ^/(.*)$                      %1/cgi-bin/$1 [H=cgi-script]
 </example>
 
 </section>