Oracle Apache/ HTTP ServerでのXCute設定方法

Oracle Apache/ HTTP Serverは、Oracle Internet Application Server(iAS)および、Oracle10g付属のHTTPサーバです。
本ドキュメントは、以下の2つについて解説します。

(1)Oracle Apache/ HTTP ServerXCuteの共存インストールについて。

(2)XCuteを動作させるためのOracle Apache/ HTTP Serverの設定方法について。

Oracle Apache/ HTTP Serverの設定は難しいところはありません。通常のApacheの設定と同様に考えて大丈夫です。


(1)〜インストールについて〜
・XCuteを先にインストールする場合
(1)XCuteを通常どおりインスト−ルします。
(2)c:\windows\system32 フォルダより、c:\InetPub\procgi7 フォルダへ、「perl56.dll」を移動してください。(コピーではなく、必ず移動してください)
(3)Oracle Apache/ HTTP Serverをインストールします。

※Oracle Universal Installer(OUI)にてインストール中に、Java Security Configuration Assistantでエラーが発生した場合、(2)の作業がうまくいっていません。
(2)の作業を行い、OUIから「再試行」を選択すれば正常に続行できます。



・Oracle Apache/ HTTP Serverを先にインストールする場合
(1)Oracle Apache/ HTTP Serverを通常どおりインストールします。
(2)XCuteを、通常どおりインストールします。
(3)c:\windows\system32 フォルダより、c:\InetPub\procgi7 フォルダへ、「perl56.dll」を移動してください。(コピーではなく、必ず移動してください)

※この作業を行わないと、Oracle Apache/ HTTP Serverが正常に動作できません



(2)〜Oracle Apache/ HTTP Server設定について〜
設定は、c:\InetPub\procgi7 フォルダを公開フォルダとし、exeという拡張子をもつcgiの実行を許可するように設定します。
他は、.htaccessによる設定の上書きを許可するように設定します。この設定は、利便性のためだけのものですので、 Apacheに詳しい方は、ご自身のセキュリティポリシーにて設定することをお勧めします。

(1)%オラクルホーム%Apache\Apache\conf フォルダより、「httpd.conf」をテキストエディタで開きます。(%オラクルホーム%は、OUIにて、インストール時に指定した場所です)

(2)まず、公開フォルダの設定を行います。他のフォルダを公開したい場合も同様に設定できます。
以下のような、「<IfModule mod_alias.c>」で始まる場所を見つけます
<IfModule mod_alias.c>
    #
    # Note that if you include a trailing / on fakename then the server will
    # require it to be present in the URL.  So "/icons" isn't aliased in this
    # example, only "/icons/"..
    #
    Alias /jservdocs/ "E:\OraHome_1\Apache\Jserv\docs/"    この辺は、環境により異なります
    Alias /javacachedocs/ "E:\OraHome_1\javacache\javadoc/"
    Alias /icons/ "E:\OraHome_1\Apache\Apache\icons/"

    <Directory "icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    <IfModule mod_perl.c>
        Alias /perl/ "E:\OraHome_1\Apache\Apache/cgi-bin/"
    </IfModule>
〜〜以下を追加〜〜
    Alias /procgi7/ "C:/InetPub/procgi7/"
    <Directory "C:/InetPub/procgi7">
        Options Indexes FollowSymLinks MultiViews ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
〜〜ここまで〜〜

(3)つぎに、exeという拡張子をもつcgiの実行を許可します。
以下のような、「AddHandler」で始まる場所を見つけます
    # AddHandler allows you to map certain file extensions to "handlers",
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action command (see below)
    #
    # If you want to use server side includes, or CGI outside
    # ScriptAliased directories, uncomment the following lines.
    #
    # To use CGI scripts:
    #
    #AddHandler cgi-script .cgi_123EOL321--123EOL321_    #
〜〜以下を追加〜〜
    AddHandler cgi-script .exe
〜〜ここまで〜〜

(4)すべての設定が終了しましたので、マシンを再起動します。

(5)以下のURLをブラウザから投入し、動作を確認してください。
http://localhost/procgi7/procond.exe?ver

このように、コンディションチェックが表示されたならば、正常に設定完了です。