On 2024-11-25 11:09, Marcus MERIGHI wrote:
location match "/(wp%-json/.*)$" {
request rewrite "/index.php/%1"
fastcgi socket "/run/php-fpm.sock"
pass
}
Thank you for this one, especially. It fixes the REST API issue.
Unfortunately, I don't understand why, which has at least as much to
with my not understanding the difference in how the location match rules
and location rules are applied to the request as not knowing how that
WordPress feature actually works, but for sure the simple location not
found rule I made is not identical in function to the nginx try_files
rule.
Thank you,
Paul