As you want a static file to be the default, you need to config the default file handler. You want to configure default documents. See docs
How to add default page to asp.net core web in linux ?
mc
4,836
Reputation points
I am using asp.net core web and linux.
the nginx.conf
I add index index.html
but it not work.
in razorpages I change the index to index.html
and I want to If one open the url can open the index.html.
http://www.xxxx.com
but now I have to enter the index.html
http://www.xxx.com/index.html
or there will be an 404
error