タグ

2013年4月23日のブックマーク (8件)

  • suz-lab.com - suz lab リソースおよび情報

    This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.

    suz-lab.com - suz lab リソースおよび情報
    Hash
    Hash 2013/04/23
    正座して読みたい解説
  • Handle X-Forwarded-Proto in backend nginx

    - all - Joschka Paul stefan Eva Daniels BlogClaudia Martin Nerdy tech-fun(k), nonsense and everything in between and above. When nginx is being used as backend server, it will talk plain "http" to the frontend server only (for performance reasons and to simplify setup). But web applications often need to know, if the traffic between the browser and server is encrypted (https), e.g. when checking i

    Hash
    Hash 2013/04/23
    ELB側でHTTPSを解いて内部的にHTTPで渡す場合にnginxに加える処理
  • nginxのconfigでifの並記を実現する - だるろぐ

    追記 Wed Jan 11 10:53:25 JST 2012 では「並記」じゃなくて「並置」と書いてました nginx(ハイパフォーマンスHTTPサーバ Nginx入門)を読んで、なるほどと思ったメモ。 例えばapacheのmod_rewriteのこんなのを RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]nginxで実現しようとすると、素直にはいかない。 nginxのifは、if-elseも無いし、if andも無いし、ifのブロックの中に更にifを書けないので。 なので変数を使ってこのようにする手法が載っていた。 set $check ""; if (!-f $request_filename) { set $check "A"

    nginxのconfigでifの並記を実現する - だるろぐ
    Hash
    Hash 2013/04/23
    かなりトリッキーなやりかた. 以前使ったのでメモ
  • Amazon EC2 Elastic Load BalancingにSSLを使った場合のnginxのSSL判別 | rake enjoy

    久々に技術ネタです。 EC2のElastic Load Balancing便利ですねー。とっても便利です。 何が便利かってSSLをロードバランサーに設定出来るんですね。なので、いちいちインスタンス側に設定しなくてもすみます。 具体的にはまず80番ポートだけでELBを作ります。このあたりはググればすぐ出てくるので割愛します。 次にSSLの設定を行うんですが、CSRの生成とかもよくある話なので飛ばします。 EC2マネージメントコンソールのLoad Balancersから対象のロードバランサーを選択後ListenerからSSLの設定を行います。 Load Balancer ProtocolにHTTPS(Secure HTTP)を選びます Load Balancer Portは443のまま Instance ProtocolはHTTPでInstance Portは80番のままでOKです Ciphe

    Hash
    Hash 2013/04/23
  • How to write a DRY, modular nginx conf (reverse proxy) with named locations

    I'm using nginx mostly as a reverse cachining proxy in front of several gunicon/mod_wsgi applications and of course to server static files. I find that quickly my nginx confs become impossible to maintain; the issue is that I have a few patterns that are similar (or even identical) but I can't manage to make it clean. One of the biggest issues I have is that I would love to use named locations as

    How to write a DRY, modular nginx conf (reverse proxy) with named locations
    Hash
    Hash 2013/04/23
    nginxのmapを使って共通設定をまとめる. hackだ
  • A debugging log

    To enable a debugging log, nginx needs to be configured to support debugging during the build: ./configure --with-debug ... Then the debug level should be set with the error_log directive: error_log /path/to/log debug; To verify that nginx is configured to support debugging, run the nginx -V command: configure arguments: --with-debug ... Pre-built Linux packages provide out-of-the-box support for

    Hash
    Hash 2013/04/23
    error.logにverboseなlogを吐き出す. 特定IPからの接続に対してdebug modeなlogを出力することも可能
  • Lisp:よくある正解 - Lispについての正しい認識と、それでもLisperがLispを使う理由

    Lispについての正しい認識と、それでもLisperがLispを使う理由 yoriyukiさんのエントリがなかなか 真実を突いていたので、ネタにさせていただきます。 原因のほとんどは経路依存性とかネットワーク効果によるもので、Lisp自体の性質とは無関係だと思います。と言った上で、私が何となくLisp系言語を使わない理由としては、 Too dynamic: 実行時にコードが差し替えられることがすごい利点だ、と言っている人がいましたが、逆に言えば今どのコードが走っているか理解しにくい、という欠点にも繋がる。 Meta programming:S式のおかげでMeta Programmingがしやすいが、Meta Programmingを多用したプログラムは理解しにくい。 動的型付け:利点でもあるけど、特有のバグを引き起こす。 識別子に関数と値の2種類が別々にバインドできる。これは私には非常に美

    Lisp:よくある正解 - Lispについての正しい認識と、それでもLisperがLispを使う理由
  • 改めてRubyとbundlerとオープンクラスとgithubに感謝

    11/01/20 10:43 Railsの中身がよく分かってないのでどこで対処すべきかうま く判断できない。でも Ruby だからなんとかなるだろうと読 んで踏み出したし、実際なんとかなった。オープンクラス最 高。 11/01/20 10:44 Ruby + githubの組み合わせがとてもよい。モンキーパッチで 対処できるし、最悪家へのフィードバックが届かなくても github的な意味でforkしてしまえばよい。 11/01/20 10:48 加えてbundlerがステキ。bundlerでforkしたrepository見に いくようにすればアプリ側は何も気にする必要がない。 11/01/20 10:49 PHP + svnのライブラリでパッチ投げて無視された(内容云々 じゃなくてもうメンテ継続してない)ことが何回かあるけど、 この場合面倒くさい。モンキーパッチも作りにくいし、fork

    Hash
    Hash 2013/04/23
    ライブラリを弄りたいときまるまるコピーして部分的に修正するPHPの醜悪さ, もっといいやり方ないですかね