Beginner's question: redirecting /dir/index.html to /dir/

Another thought… Can the catch-all virtual host redirect with 301
instead of 302? The less elegant solution employed 301. Thanks!

Posted at Nginx Forum: