Provided I place the appropriate value in live_site (the URL for the site, e.g. https://www.example.com) the site works correctly.
Without a value in live_site, the site does not work for the reasons stated above: "However, if PHP is running as PHP-FPM (which is a favoured solution for high performance and for site security) then the super global will contain "/heading/article" for the example above. With this value, Joomla does not work out how to handle the request and gives a 404 error". That applies to both PHP_SELF and SCRIPT_NAME. You can say that there is "something amiss" with them if you like, but that is the actual behaviour of PHP-FPM. It is not a configurable option.
It doesn't really matter what is in PHP_SAPI since in PHP-FPM the result comes out the same either way. The cleanup doesn't make any material difference.
I have actually been aware for many years that there has been no way to determine with certainty the base directory of a PHP web application (from within the application) that will work in every implementation of PHP. The information that is needed is not provided in a fully consistent way. It is frustrating that so many Joomla people refuse to recognise this.
Without a value in live_site, the site does not work for the reasons stated above: "However, if PHP is running as PHP-FPM (which is a favoured solution for high performance and for site security) then the super global will contain "/heading/article" for the example above. With this value, Joomla does not work out how to handle the request and gives a 404 error". That applies to both PHP_SELF and SCRIPT_NAME. You can say that there is "something amiss" with them if you like, but that is the actual behaviour of PHP-FPM. It is not a configurable option.
It doesn't really matter what is in PHP_SAPI since in PHP-FPM the result comes out the same either way. The cleanup doesn't make any material difference.
I have actually been aware for many years that there has been no way to determine with certainty the base directory of a PHP web application (from within the application) that will work in every implementation of PHP. The information that is needed is not provided in a fully consistent way. It is frustrating that so many Joomla people refuse to recognise this.
Statistics: Posted by counterpoint — Sun Dec 01, 2024 1:27 pm