My server has just wiped out by the provider, and I don't have the backup of the Nginx configuration file. It was completely lucky I got it working, now I don't know what to do.
So I am having multiple files to do some specific things, and I am using Slim Framework on each file. The idea is to keep the php extension on the URL. Something like this:
www.example.com/service.php/customer/1
www.example.com/api.php/data
www.example.com/test.php/other-data/5
Does anyone have some clue on this? I really forgot what I did before with the configuration.
Thank you in advance
As suggested in the comments, it's probably a better idea to rewrite your urls so that '.php' is removed :
Your NGINX configuration file should then look like this :
See : http://nginx.org/en/docs/http/ngx_http_rewrite_module.html for in-depth information.
Don't forget to restart your NGINX service after editing its configuration.
If somehow someone goes here, I finally found the answer.