How to add default page to core web in linux ?

mc 3,641 Reputation points

I am using 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.

but now I have to enter the index.html

or there will be an 404 error

A set of technologies in the .NET Framework for building web applications and XML web services.
4,158 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce ( 55,601 Reputation points

    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