{"comment":{"created_at":"2011-10-25T08:09:58Z","body":"These are the relevant configuration statements for this issue:\r\nRewriteEngine On\r\nRewriteRule ^/kaarst /content/steuerberater/stb/wir_ueber_uns/unsere_standorte/steuerberater_kaarst/unsere_philosophie/index_ger.html [PT]\r\nAliasMatch ^/(?!cgi-bin|error|icons)(.*)$ /srv/www/tmp/cms.fcgi/$1\r\n\r\nThis would be the desired result:\r\nSCRIPT_NAME: /\r\nREQUEST_URI: /kaarst\r\nPATH_INFO: /content/steuerberater/stb/wir_ueber_uns/unsere_standorte/steuerberater_kaarst/unsere_philosophie/index_ger.html\r\n\r\nThis is the actual result with the mod_perl workaround in place in Plack:\r\nSCRIPT_NAME: /\r\nREQUEST_URI: /kaarst\r\nPATH_INFO: /kaarst","updated_at":"2011-10-25T08:09:58Z","url":"https://api.github.com/repos/miyagawa/Plack/issues/comments/2514226","id":2514226,"user":{"avatar_url":"https://secure.gravatar.com/avatar/ae30338d3710402109ee5433784e9b86?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ae30338d3710402109ee5433784e9b86","url":"https://api.github.com/users/niner","id":73249,"login":"niner"}},"action":"created","issue":{"number":254,"created_at":"2011-10-24T16:07:20Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"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.\r\n\r\nWe 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.\r\n\r\nRemoving the above mentioned workaround for mod_perl fixes the issue for us.","comments":2,"title":"Workaround for mod_perl introduced a bug for mod_rewrite","updated_at":"2011-10-25T08:09:58Z","url":"https://api.github.com/repos/miyagawa/Plack/issues/254","id":2035308,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/ae30338d3710402109ee5433784e9b86?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ae30338d3710402109ee5433784e9b86","url":"https://api.github.com/users/niner","id":73249,"login":"niner"},"html_url":"https://github.com/miyagawa/Plack/issues/254","labels":[],"state":"open"},"legacy":{"issue_id":2035308,"comment_id":2514226}}