On Wed, Jul 15, 2009 at 8:54 AM, André Warnier<a...@ice-sa.com> wrote:
> http://httpd.apache.org/docs/2.2/vhosts/mass.html#xtra-conf
> in the section
> Simple dynamic virtual hosts using mod_rewrite
> the example, at the end, shows this set of rules :
>
> ## and now deal with CGIs - we have to force a MIME type
> RewriteCond %{REQUEST_URI} ^/cgi-bin/
> RewriteRule ^/(.*)$ /www/hosts/${lowercase:%{SERVER_NAME}}/cgi-bin/$1
> [T=application/x-httpd-cgi]
>
> Would this not result in a URI like "../cgi-bin/cgi-bin/..." ?

Anyone have a prettier choice, I dislike both of these (ugly capture,
repeating "cgi-bin")

[ ] RewriteRule  ^/(cgi-bin/.*)$
/www/hosts/${lowercase:%{SERVER_NAME}}/$1  [H=cgi-script]<br />
[ ] RewriteRule  ^/cgi-bin/(.*)$
/www/hosts/${lowercase:%{SERVER_NAME}}/cgi-bin/$1  [H=cgi-script]<br
/>


-- 
Eric Covener
cove...@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to