Update static-files.rst

Fix typo in filename
pull/831/merge
John Reilly 2015-12-26 15:52:05 +00:00 committed by RachelAppel
parent bc2e65145c
commit ad715e95df
1 changed files with 1 additions and 1 deletions

View File

@ -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.