RailoとApacheを連携するメモ
正月が明けて、久しぶりにCF開発を再開する気持ちになtった。
昨年軽くテストしたRailoは、スタンドアロンモードでテストしていたので、今回Apacheと連携させてみた。
Railoのルートディレクトリに、ウェブサーバ連携設定用のセットアッププログラム(setup.exe)が準備されているのですが、サポート対象はApache1.3までのようで、私のxampp環境(Apache2.2)ではうまく動作しませんでした。コネクター用ポートNoは6800・・・
仕方がないので、RailoとResinのサイトを確認。
Railo->Documentation->Installation->Railo Custom->Application Server->Caucho Resin
http://www.railo-technologies.com/en/index.cfm?treeID=210
Resinの一般的インストール情報みたいです・・・Resinのインストール情報をさらに確認。
Resin->resin3.1->installation->apache#windows
http://caucho.com/resin-3.1/doc/install-apache.xtp#windows
???、コネクター用のポートNoは6802?
LoadModule caucho_module \
<installdir>/resin-3.1.x/win32/apache-2.0/mod_caucho.dll
ResinConfigServer localhost 6802
<Location /caucho-status>
SetHandler caucho-status
</Location>
で、続いてのResin.confの設定は・・・なにやら arunタグでホストとポートを定義しなきゃいけない?
<resin xmlns="http://caucho.com/ns/resin"
xmlns:resin="http://caucho.com/ns/resin/core">
...
<server>
...
<cluster>
<srun server-id="" host="127.0.0.1" port="6802"/>
</cluster>
...
resin.confのデフォルト設定では、ポートNoは6800となっている・・・
<!-- define the servers in the cluster -->
<server id="" address="127.0.0.1" port="6800"/>
何度か試したあげく、最終的にはapache.confのポートNoを6800に設定、Resin.confはデフォルトのままでいいことがわかりました。
#DirectoryIndexの先頭に、index.cfmとindex.jspを追加しておくのを、お忘れなく。
<IfModule dir_module>
DirectoryIndex index.cfm index.cfc index.jsp index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
</IfModule>
コメント