httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r293166 - /httpd/httpd/trunk/docs/manual/vhosts/mass.xml
Date Sun, 02 Oct 2005 20:59:15 GMT
Author: rbowen
Date: Sun Oct  2 13:59:13 2005
New Revision: 293166

URL: http://svn.apache.org/viewcvs?rev=293166&view=rev
Log:
Use the H flag to force cgi's to be handled as cgi-script.

Modified:
    httpd/httpd/trunk/docs/manual/vhosts/mass.xml

Modified: httpd/httpd/trunk/docs/manual/vhosts/mass.xml
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/docs/manual/vhosts/mass.xml?rev=293166&r1=293165&r2=293166&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/vhosts/mass.xml (original)
+++ httpd/httpd/trunk/docs/manual/vhosts/mass.xml Sun Oct  2 13:59:13 2005
@@ -352,9 +352,9 @@
 # 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 @@
 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>



Mime
View raw message