Mailing List Archive

[Bug 68257] New: FallbackResource causes DirectoryIndex to fail after first try
https://bz.apache.org/bugzilla/show_bug.cgi?id=68257

Bug ID: 68257
Summary: FallbackResource causes DirectoryIndex to fail after
first try
Product: Apache httpd-2
Version: 2.4.52
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: bugs@httpd.apache.org
Reporter: rimas@kudelis.lt
Target Milestone: ---

I'm running Apache 2.4.52 on Ubuntu 22.04.

Let's say I have a WordPress website and want to access `/wp-admin/`.

A configuration like this:

```
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
FallbackResource /index.php
```

works as expected: opening `/wp-admin/` launches `/wp-admin/index.php`, which
exists.

However, if `DirectoryIndex` file names are rearranged and `index.php` is no
longer first in the list:

```
DirectoryIndex index.html index.php index.cgi index.pl index.xhtml index.htm
FallbackResource /index.php
```

opening `/wp-admin/` disregards the existing `/wp-admin/index.php` and launches
`/index.php` instead, which (in case of WordPress) causes a redirection loop in
which the page keeps redirecting to itself.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org