You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2005/10/02 22:59:15 UTC
svn commit: r293166 - /httpd/httpd/trunk/docs/manual/vhosts/mass.xml
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>