LoginSignup
2
0

More than 3 years have passed since last update.

Windows 10 上で IIS + classic asp を動かす

Last updated at Posted at 2019-08-16

環境

Windows10 Pro

IIS と classic asp の設定

[コントロールパネル] - [プログラムのアンインストール] - [Windows の機能の有効化または無効化]
asp と ISAPI 拡張 をチェック(asp をチェックすると ISAPI 拡張もチェックされるはず、、)
image.png
image.png

IIS マネージャで新しく登録します

IIS には最初から Default Web Site というサイト(URL, port と表示するディレクトリの組み合わせ)が用意されている。
まずはそのDefault Web Site で classic ASP を動かします。

image.png
iismanage1.png
iismanage2.png
image.png

「%SystemDrive%\inetpub\wwwroot」が Default Web Site のディレクトリだとわかります。
%SystemDrive% は環境変数で、通常は「C:」が入っていると思われます。

Default Web Site のディレクトリに classic asp のファイルを設置

「%SystemDrive%\inetpub\wwwroot」(= C:\inetpub\wwwroot)のディレクトリ下を見てみます。
デフォルトで表示されるhtml ファイルが置かれているのがわかります。
image.png
image.png

localhost でも表示されます

これは Default Web Site が 「http:*:80」、つまり、http プロトコルでポート 80 へ来たアクセスを担当しているからです。
image.png
image.png

classic asp ファイルを設置

test.asp
<html>
<body>
<%
Response.Write "IIS + classic asp on windows 10 "
%>
<p><%= Now() %></p>
</body>
</html>

image.png

localhost/test.asp に直接アクセスします。

image.png

2
0
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
2
0