How do you fix Nginx automatically 301 redirecting to the same URL with a trailing slash?
问题 I am getting an undesired behaviour from Nginx where it is rerouteing requests when I try to access index files within subdirectories of my web application to the same URL, but with an appended slash. I have a simple web application set up with a root directory, and a number of subdirectories within it, each with a index.php file within them. The server's OS is Ubuntu server, Nginx is the server, and PHP5-fpm is installed. I want to navigate to http://foo/bar to get the output of the index