Apache2 with PHP FallbackResource doesn't work when Request-URI is / and encoding is gzip
Bug #1168030 reported by
Giovanni Lovato
on 2013-04-11
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| apache2 (Ubuntu) |
Medium
|
Unassigned |
Bug Description
Installed packages:
apache2-mpm-prefork (2.2.22-6ubuntu2.2)
libapache2-mod-php5 (5.4.6-1ubuntu1.2)
Steps to reproduce:
1. Allow option override on /var/www
2. Remove /var/www/index.html
3. Create /var/www/index.php with any content (e.g. <?php echo $_SERVER[
4. Create /var/www/.htaccess with FallbackResource /index.php
5. Go to http://
6. Go to http://
Either disabling FallbackResource or gzip encoding solve the issue, so I assume is the combination of the two to cause the problem.
Giovanni Lovato (heruan)
on 2013-04-11
description: | updated |
summary: |
Apache2 with PHP FallbackResource doesn't work when Request-URI is / and - Content-Encoding is gzip + encoding is gzip |
Giovanni Lovato (heruan) wrote : | #1 |
Robie Basak (racb)
on 2013-04-12
Changed in apache2 (Ubuntu): | |
importance: | Undecided → Medium |
Launchpad Janitor (janitor) wrote : | #2 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in apache2 (Ubuntu): | |
status: | New → Confirmed |
Adrien Béraud (wagaf) wrote : | #3 |
This bug breaks many websites.
To post a comment you must log in.
Having "DirectoryIndex index.php" on the .htaccess file solves the issue. It seems the default Apache DirectoryIndex is causing the problem when index.php is not the first default index document.