httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: [users@httpd] addhandler changes between Apache 1.3 and 2.0
Date Fri, 18 Jun 2004 09:53:17 GMT
* Alois Treindl <alois@astro.ch> wrote:

> # in Apache 2.0, the Addhandler directive does not work to give .htm
> # requests to xa.cgi if the requested file is missing.
> # for this case, we use this extra redirect
> RewriteCond /www/docs/%{REQUEST_FILENAME} \.htm$
> RewriteCond /www/docs/%{REQUEST_FILENAME} !-f
> RewriteRule /(.*) /cgi/xa.cgi/$1 [L,R]
> 
> If I leave the  [R] flag out, the redirect is done to
> /www/docs/cgi/xa.cgi 
> which of course does not work, as the /cgi/ directory is not within
> the documents directory /www/docs

OK. Try to replace the R flag with PT.

nd

---------------------------------------------------------------------
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


Mime
View raw message