2010-10-01から1ヶ月間の記事一覧

Amazon ELB の前にApacheのプロキシをおいたらレスポンスヘッダが壊れた。。

mydomain.com みたいなドメインのEC2上で稼働しているサービスでElastic Load Balancerを使うことなったので、EC2のロードバランサーのIPアドレスが変わる罠を回避するために、ELB前に reverse proxy を置いて、mydomain.com をElastic IP に割り当てる構成…

nginx でreverse proxyを構築する

nginx http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html http://blog.madoro.org/mn/15 http://labs.unoh.net/2009/08/tips_for_nginx.html 追記: https://wincent.com/wiki/nginx_log_rotation

PostgreSQLのtuning

資源の消費(8.1) 資源の消費(9.0) shared_buffers temp_buffers 一時テーブルで使用 max_prepared_transactions 同時に利用出来る(prepared)トランザクション数 work_mem ORDER BY, DISTINCT で使用 maintenance_work_mem VACUUM, CREATE INDEX, ALTER TABLE…

XCache リソース

XCache php.ini の書き方

trac plugin : around wiki syntax

http://trac.edgewall.org/wiki/TracDev/IWikiSyntaxProviderExample http://trac.edgewall.org/wiki/TracDev/Proposals/WikiParserFormatterSplit

python decorator とは、

http://jutememo.blogspot.com/2008/10/python-1_09.html

checkinstall でRPMを作成

http://asic-linux.com.mx/~izto/checkinstall/download.php rpmbuild が必要 - yum install rpmdevtools 参考: http://www.atmarkit.co.jp/flinux/rensai/linuxtips/530mkrpmfs.html

EC2 ELB AutoScale 関連記事

http://docs.amazonwebservices.com/AutoScaling/latest/DeveloperGuide/ http://www.milkstand.net/fsgarage/archives/001633.html http://builder.japan.zdnet.com/sp/09-personal-cloud/story/0,3800097247,20393267,00.htm

送信したメールが受信側でsoftfail となる場合の対処メモ

自前メールサーバーからメールを送信したところ、受信したGmailでSPAM扱いされていた。メールのsourceを見ると、 Received-SPF: softfail (google.com: domain of transitioning noreply@xxxxx.jp does not designate 11.111.111.1 as permitted sender) cli…

Firefoxでだけ使える javascript 文法

以下の文法は Firefox でだけ使えるみたい。 var [i, am, a_japanese] = "I am a_Japanese".split(" ");IE8, Chrome ではこうなってしまう var buff = "I am a_Japanese".split(" "); var i = buff[0]; var am = buff[1]; var a_japanese = buff[2];もっとい…