I host WP sites so they are all happy with:
location / {
try_files $uri $uri/ /index.php?$args;
}
BUT if there is a index.html and no index.php I get a 404 error. Is there a way to change the above code to first look for index.html and only if not found look for index.php?