WEBサーバー構築 Windows 2000 Professional sp2

 ここではWEBサーバーの構築方法を紹介します。 まず、次のアーカイブを用意します。

アクティブ・パール APi519e.exe
Jパール jperl519b1.zip
アパッチ apache_1_3_9_win32.exe

★ パールのインストール

 APi519e.exeを実行しパールをc:/usrにインストールします。 続いてjperl519b1.zipを解凍しjinstall.batで日本語パールを インストールします。

★ アパッチのインストール

 apache_1_3_9_win32.exeを実行しインストールします。 インストール後confのフォルダにあるhttpd.confを設定します。

★ httpd.confの設定

 TCP/IPと同じアドレスを設定します。

ServerName 192.168.0.200

 ホームページのルート・ディレクトリを設定します。

DocumentRoot "C:/homepage/idol"

<Directory "C:/homepage/idol">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride None
Order allow,deny
Allow from all
</Directory>

 次の行には先頭に#をつけてコメントアウトします。

#ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/"

#<Directory "C:/Program Files/Apache Group/Apache/cgi-bin/">
# AllowOverride None
# Options ExecCGI
#</Directory>

 CGI/SSIの設定をします。

AddType text/x-server-parsed-html .html
AddType text/x-server-parsed-html .htm
AddType application/x-httpd-cgi .pl
AddType application/x-httpd-cgi .cgi
AddHandler cgi-script .cgi

 ストリーミングの設定 (Feb 11, 2002 追加)

AddType video/x-ms-asf .asf
AddType video/x-ms-asf .asx
AddType video/x-ms-wmv .wmv
AddType audio/x-ms-wma .wma
AddType audio/x-ms-wax .wax

AddType audio/x-pn-realaudio .ra
AddType audio/x-pn-realaudio .rm
AddType audio/x-pn-realaudio .ram
AddType audio/x-pn-realaudio-plugin .rpm

 以上でアパッチhttpd.confの設定は終わりです。

Feb 28, 2000

The following clause.

サーバー構築部門