Bug #979
fcgi+execwrap conflicts with index-file.names
| Status: | Invalid | Start: | ||
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | core | |||
| Target version: | - | |||
| Pending: | No |
Resolution: | invalid |
|
| Patch available: |
Description
I run php-fcgi with execwrap (for proper isolation).
Each vhost runs php scripts under own UID/GID.
For security, php scripts have 0640 modes, thus they are unreadable by lighty itself (I use check-local=>disable in fcgi config.).
The problem is, index.php files must be 0644 or we get 403.
(non-index php files work correctly with 0640)
This is because mod_indexfile uses stat_cache_get_entry() which checks for file readability and returns EACCESS in this case, and mod_indexfile immediately translates this to 403.
This might be a shortcut, but if we have fcgi and suexec this shortcut leads to missing functionality.
History
04/24/2008 09:13 PM - stbuehler
- Status changed from New to Fixed
- Resolution set to invalid
mod-indexfile is made for choosing between different index filenames. What you want is just a simple rewrite rule; append 'index.php' at every path ending in '/'.