Topic: Difference between mod_php and php-fpm with double extension in URI
Note: in this post i've replaced "www" by "w ww" because "Too more links in message. Allowed 1 links. Reduce number of links and post it again."
Hello,
With a SimpleSAMLphp project, the are URI like :
/slug/module.php/idP/loginuserpass.php?...
In .htaccess :
RewriteRule ^([a-z0-9-]+)/(.*)$ /simplesaml/$2 [QSA,E=SLUG:$1]
After rewrite :
/simplesamlphp/module.php/idP/loginuserpass.php?...
In source files, "tree" of document root :
web/
├── ...
├── .htaccess
└── simplesaml -> ../vendor/simplesamlphp/simplesamlphp/w ww
├── ...
In source files, "tree" of symlink :
vendor/simplesamlphp/simplesamlphp/w ww/
├── ...
├── module.php
├── ...
With mod_php = no problem.
> Executed script file is : vendor/simplesamlphp/simplesamlphp/w ww/module.php
> Argument is : /idP/loginuserpass.php?...
With php-fpm = problem.
"File not found." is displayed.
<FilesMatch ".+\.php(.+)?$">
SetHandler "proxy:unix:/run/php/php5.6-fpm.sock|fcgi://localhost"
</FilesMatch>
> Executed script seems to be : vendor/simplesamlphp/simplesamlphp/w ww/module.php/idP/loginuserpass.php?...
> No argument
Help :
- any ideas to resolve this problem ?
- how to configure PHP-FPM in this case ?
Thanks