miyagawa/Plack — Issue #254: Workaround for mod_perl introduced a bug for mod_rewrite
Author: niner
Created: 2011-10-24 16:07:20+00:00
State: open

Commit 5a22236b155fe1b61f00c84fed6b0602124456cd introduced a workaround for a mod_perl issue. Since mod_perl squeezes multiple slashes into one in PATH_INFO, REQUEST_URI is used instead to generate a new PATH_INFO.

We use a content management system based on Catalyst 5.9 which uses Plack underneath. The CMS is running as FastCGI process and accessed via mod_fastcgi from Apache. We use mod_rewrite to provide short URLs for certain sub pages. With Catalyst 5.8 this works while with 5.9 this is broken, resulting in 404 errors from the CMS. The problem is, that PATH_INFO now contains the short URL which the CMS knows nothing about. Without Plack, REQUEST_URI contains the short URL while PATH_INFO contains the destination path which is what the CMS needs to find the right page.

Removing the above mentioned workaround for mod_perl fixes the issue for us.