Hi,

I have tried to verify this hasn't been addressed before on this list,
my apologies if is has:

I have upgraded from 1.3 to 2.2.8 and I have noticed a possible bug:
When using mod_rewrite to proxy a possible directoryindex page, the
subsequent directoryindex filenames are ignored. (Or the return status
of the proxy call isn't acted upon.)

To replicate:

---
htdocs/.htacces
htdocs/index.shtml
htdocs/mysubdir/index.php
---


In htdocs/.htaccess:

   DirectoryIndex  index.php   index.shtml

   <IfModule mod_rewrite.c>
      RewriteEngine    On
      RewriteRule  \.php  http://phpbackendserver:85%{REQUEST_URI} [P,L]
   </IfModule>
---


In version 1.3 I could go to / and it would display index.shtml, and
then I could go to /mysubdir/ and it would run the index.php version.
In other words it wouldn't do the full proxy check for index.php for
the root directory, it would just see the php index file isn't there
and instead display index.shtml.

In version 2.2.8 when I go to / I get a 404 Not Found page, because it
looks for PHP using the proxy request, doesn't find it, and apparently
stops there.

It appears that now the server is doing the full proxy request for the
possible index.php file, which is a good thing and I see in the
ChangeLog that


  *) Allow proxying of resources that are invoked via DirectoryIndex.
     PR 14648, 15112, 29961.  [AndrÃ(c) Malo]



was added in 2.0.51.   However if that proxy request then returns a
404, then should the main Apache process not move on to the next entry
in directoryindex list? Thus I would get index.shtml displayed on the
first directory, and index.php on the second.

My workaround for this so far has been to change (reverse) the
priorities of the two directoryindexes in the various htaccess files
where I can see the problem, however it would be preferable if it is
was possible either to set it to mimic the old behaviour, or to have
it check the proxy request's return status, so that the next
directoryindex can be displayed instead if necessary.

If anyone could suggest anything to help me cope with this or work
around it generally, would be grateful thanks.

Jeremy

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to