> location ~ \.php$ {
".php" won't be in the web address, so this won't work.
> index a.php b.php
I'm not sure how this would help either. I don't want to list the .php files one by one in the server configuration. I want to be able to add files at will to my website, without having to edit the nginx config for each path.
I want to be able to add, for example, /rhubarb.php, and it instantly be reachable at /rhubarb. I also want anything you type after /rhubarb to match /rhubarb.php. So if the user went to /rhubarb/1234, or /rhubarb/something, or /rhubarb/something/something, they would all run /rhubarb.php.
".php" won't be in the web address, so this won't work.
> index a.php b.php
I'm not sure how this would help either. I don't want to list the .php files one by one in the server configuration. I want to be able to add files at will to my website, without having to edit the nginx config for each path.
I want to be able to add, for example, /rhubarb.php, and it instantly be reachable at /rhubarb. I also want anything you type after /rhubarb to match /rhubarb.php. So if the user went to /rhubarb/1234, or /rhubarb/something, or /rhubarb/something/something, they would all run /rhubarb.php.