Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Gotcha! I remember reading that the index directive works on URIs with trailing slashes, but I did not immediately understand that the actual serving was implemented by try_files. It makes sense. Thank you! Commented Sep 20, 2018 at 19:12
  • 1
    You do not need try_files to implement index. But if you do have a try_files statement, you need to add the $uri/ term, otherwise index will be disabled within that block. Commented Sep 20, 2018 at 19:18
  • Oh, ok. Is that specified in the documentation somewhere? Commented Sep 20, 2018 at 20:49
  • Index is documented here. Commented Sep 20, 2018 at 20:56
  • I really don't see how I would have gathered the information you provided from the documentation, which I had already read. Commented Sep 20, 2018 at 21:06