Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

IIS 10.0 で静的ファイルの配信サーバーを構築する【開発用】

0
Posted at

はじめに

ローカル開発用に IIS 10.0 で静的ファイルを配信した時の備忘録です。

改訂履歴

  • 2026/07/12 : 初版公開。

本文

1. 環境

  • IIS 10.0
  • Windows Server 2025 Datacenter Evaluation 24H2
  • VMware Workstation Pro 25H2u1

2. 手順

2-1. IIS のインストール

サーバーマネージャーから「役割と機能の追加」をクリックします。

次へ進みます。

「役割ベースまたは機能ベースのインストール」が選択されていることを確認し、次へ進みます。

次へ進みます。

「Web サーバー (IIS)」を選択します。

ポップアップが表示されますので、機能の追加をクリックします。

「Web サーバー (IIS)」を選択されていることを確認し、次へ進みます。

次へ進みます。

次へ進みます。

「静的なコンテンツ」が選択されていることを確認し、次へ進みます。

インストールをクリックします。

しばらく待ちます。

完了したら、閉じるをクリックして終了します。

2-2. 静的ファイルの配信設定

今回は以下のテストファイルを配信してみます。

Weather.xml
<?xml version="1.0" encoding="UTF-8"?>
<Weather>
  <City>東京</City>
  <Condition>晴れ</Condition>
  <Temperature>32</Temperature>
</Weather>

C ドライブ直下にフォルダを作成し、先程のテストファイルを配置します。

C:\Test\Weather

IIS マネージャーからサイトを右クリックし「Web サイトの追加...」を選択します。

今回は以下のように設定しました。

3. 動作確認

ブラウザからアクセスしてみます。IP アドレスは適宜変更してください。

成功しました。

おわりに

ローカル開発用のため、セキュリティはガバガバです。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?