Complete the code to use try_files to check for the requested file or fallback to index.html.
try_files $uri [1];The try_files directive checks if $uri or $uri/ exists, then falls back to /index.html.
Complete the code to try the requested URI, then the URI with a trailing slash, then fallback to /index.php.
try_files $uri [1] /index.php;The directive tries $uri, then $uri/, then falls back to /index.php.
Fix the error in the try_files directive to properly fallback to /404.html if files are not found.
try_files $uri $uri/ [1];The fallback file must be an absolute path starting with a slash, so /404.html is correct.
Fill both blanks to try the requested URI, then the URI with index.html, then fallback to /fallback.html.
try_files [1] [2] /fallback.html;
$uri/ instead of $uri/index.htmlThe directive tries $uri, then $uri/index.html, then falls back to /fallback.html.
Fill all three blanks to try the URI, then URI with trailing slash, then URI with index.php, falling back to /default.php.
try_files [1] [2] [3] /default.php;
The directive tries $uri, then $uri/, then $uri/index.php, then falls back to /default.php.