How can I set index files for v2

in v1,I set like: index myindex.html myindex.php index.html index.php
how can I do for v2?

Use this index option for the php_fastcgi directive:

For the .html indexes, use the try_files directive:

Something like this (it will already serve index.html by default so you only need to trigger a rewrite if your other .html exists on disk):

try_files {path}/myindex.html
1 Like

This topic was automatically closed after 14 days. New replies are no longer allowed.