Nginxとmonitを導入しました

このブログサイトは、Railsで書かれたTypo で構築していますが、mongrel_clusterのフロントエンドにはApacheを使ってきました。

最近、The Rails Way を読んだので、フロントエンドをNginx に変更し、ついでに監視ツールのmonit も導入してみました。

Nginxでは、最初Mime-typeを入れ忘れたので、スタイルシートが無効になったり、X-Forwarded-protocolでhttpsを指定してしまい、SSLがないのにURLがhttpsになったりして面食らいましたが、何とかうまくいっているようです。

monitの設定では、mongrel_clusterでプロセスを1つずつstart/stopするスクリプトが動かず、調べるのに時間がかかってしまいましたが、おかげで、mongrelで導入されたgems_pluginのフックの仕組みが分かりました。それにしても、mongrelを作ったZed Shawは偉い!

This entry was posted on Fri, 11 Apr 2008 13:57:00 GMT and Posted in . You can follow any any response to this entry through the Atom feed. You can leave a comments, Or a trackback from your own site.
Tags , , , ,


Trackbacks

Use the following link to trackback from your own site:
http://rails.to/trackbacks?article_id=nginx-and-monit-applied&day=11&month=04&year=2008

Comments

Leave a response

Leave a comment