「ruby/サンプル/環境構築(Windows+ruby+apache2)」の編集履歴(バックアップ)一覧に戻る

ruby/サンプル/環境構築(Windows+ruby+apache2) - (2012/11/06 (火) 03:45:37) の編集履歴(バックアップ)


Apache2のインストール


Apachのサイトから「httpd-2.2.22-win32-x86-openssl-0.9.8t.msi」をダウンロードし実行します。
Index of /mirror/apache/dist//httpd/binaries/win32
http://ftp.meisei-u.ac.jp/mirror/apache/dist//httpd/binaries/win32/

途中の設定はこんな感じ。


インストールが完了するとApache2が起動してるので、「http://localhost/」にアクセスするとなんか出て来ました。

C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\httpd.conf

<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin">
   AllowOverride None
   Options None
   Order allow,deny
   Allow from all
</Directory>

<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin">
   AllowOverride All
   Options +ExecCGI
   Order allow,deny
   Allow from all
</Directory>

# AddHandler cgi-script .cgi

AddHandler cgi-script .cgi