parent
bc2e65145c
commit
ad715e95df
|
@ -154,7 +154,7 @@ To specify a different default file from the ones listed above, instantiate a ``
|
|||
app.UseStaticFiles();
|
||||
...
|
||||
|
||||
Now, if the user browses to a directory in the webroot with a file named ``mydefault.htm``, that file will be served as though the user typed in the fully qualified URI.
|
||||
Now, if the user browses to a directory in the webroot with a file named ``mydefault.html``, that file will be served as though the user typed in the fully qualified URI.
|
||||
|
||||
But, what if you want to serve a default page from a directory that is outside the webroot directory? You could call both the ``UseStaticFiles`` and ``UseDefaultFiles`` methods passing in identical values for each method's parameters. However, it's much more convenient and recommended to call the ``UseFileServer`` method, which is covered in the next section.
|
||||
|
||||
|
|
Loading…
Reference in New Issue