|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-02-12 19:20 UTC] viktor at szepe dot net
Description:
------------
mod_fastcgi used to set PATH_INFO properly.
I use mod_proxy_fcgi+FPM through a UDS:
<LocationMatch "^/.+\.php(/.+)?$">
ProxyPassMatch "unix:///run/php5-fpm-${SITE_USER}.sock|fcgi://localhost${DOCUMENT_ROOT}"
</LocationMatch>
This does not set PATH_INFO.
I have to use the unreliable 'proxy-fcgi-pathinfo' as a word-around.
SetEnvIf Request_URI "^" proxy-fcgi-pathinfo=first-dot
Please consider setting PATH_INFO.
Thank you.
BTW It is ok on PHP 7.0.15
Test script:
---------------
// Navigate to test.php/path-info
var_dump(isset($_SERVER['PATH_INFO']));
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 07:00:01 2025 UTC |
When FilesMatch it works OK. <FilesMatch ".+\.php$"> SetHandler "proxy:unix:/run/php5-fpm-${SITE_USER}.sock|fcgi://localhost" </FilesMatch>