You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by André Warnier <aw...@ice-sa.com> on 2009/07/15 14:54:26 UTC
[users@httpd] Documentation problem ?
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/..." ?
---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Documentation problem ?
Posted by Eric Covener <co...@gmail.com>.
On Wed, Jul 15, 2009 at 8:54 AM, André Warnier<aw...@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
covener@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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org