ansible-nginx icon indicating copy to clipboard operation
ansible-nginx copied to clipboard

Default try_files means 404 won’t be hit if an index.html is at the root

Open lchski opened this issue 8 years ago • 0 comments

The default try_files list ends with /index.html /index.htm. With these set, requests that should 404 instead show the site’s index.html if there’s one set. This seems undesirable to me; perhaps these two should be removed from the default list, or a note added to the error_page documentation that the error pages won’t be activated if the default list is set and an index.htm[l] file is in the site’s root.

lchski avatar Jun 17 '17 18:06 lchski