IISサーバのlocalhostにディレクトリを追加する
記事一覧
Visual StudioのASP.NET Core MVC で Web アプリを作成してみた(記事一覧)
localhostのルートディレクトリ
IISのルートディレクトリは、「C:\inetpub\wwwroot」となる。
そのため、http://localhost/ にアクセスした場合、ルートディレクトリ上の「iisstart.htm」が表示される。
IISのlocalhostにディレクトリを追加する
IISのルートディレクトリに任意のディレクトリ「IIS_Page」を追加して、任意のHTML「index.htm」を追加する。
C:\inetpub\wwwroot\IIS_Page\index.htm
index.htm
<html lang="ja">
<head>
<title>Tabに表示されるタイトル</title>
<meta charset="UTF-8" />
</head>
<center>
<h1>rainのページ </h1></center>
<hr>
</center>
</body>
</html>
追加したディレクトリにアクセスする
http://localhost/IIS_Page/ にアクセスすると、配置したHTMLが表示される。
Author And Source
この問題について(IISサーバのlocalhostにディレクトリを追加する), 我々は、より多くの情報をここで見つけました https://qiita.com/yuta-sasaki/items/e0578bbbd95a19a8c005著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .