LoginSignup
1
3

More than 3 years have passed since last update.

IISサーバにドメインを設定する

Last updated at Posted at 2020-06-27

記事一覧

Visual StudioのASP.NET Core MVC で Web アプリを作成してみた(記事一覧)

ドメインを設定する

テキストエディタを管理者権限で開き、下記のファイルを編集する。
C:\Windows\System32\drivers\etc\hosts

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost
192.168.**.*    rain.com #(ipadress) 192.168.**.*にrain.comというドメインを設定する

ドメインにアクセスしてみる。
ドメインを設定する.PNG

急にドメインでアクセスできなくなったら

ブラウザのキャッシュの回覧の履歴を削除する。
「http://(ドメイン):81」など存在しないポート番号を指定してHTTP通信に失敗すると、ブラウザにキャッシュされてしまうため、それ以降に正しいドメインを設定してもURLにアクセスできなくなってしまう。

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3