Closed ChZhongPengCheng33 closed 9 months ago
Hi @ChZhongPengCheng33 thank you for the PR! I'll be adding another settings parameter to specify the default files for root directory URLs; the default will be "index.html" but it will be a list that will be processed. Thus, I'll be closing this PR. The functionality should be included in the next release!
Updated to v6.1.5 in NuGet with this functionality. Please refer to the Webserver.Routes.[PreAuthentication|PostAuthentication].Content.DefaultFiles
property (List<string>
).
It's currently set, by default, to:
private List<string> _DefaultFiles = new List<string>
{
"index.html",
"index.html",
"default.html",
"default.htm",
"home.html",
"home.htm",
"home.cgi",
"welcome.html",
"welcome.htm",
"index.php",
"default.aspx",
"default.asp"
};
Add the following code after here:
After adding the above code, my Vitespress documentation website can now function properly.