bekkou68 の日記

Gogengo! や IT 技術など。

Nginx

Rails 3 + Nginx/Unicorn を Amazon AWS に Capistrano 3 でデプロイする

はじめに Amazon AWS 環境下で Rails 3 のアプリを Nginx/Unicorn で動くように Capistrano 3 でデプロイする手順をまとめました。 以下を前提に話を進めます デプロイ対象のアプリ/DBインスタンスはすでにつくられているとします デプロイ対象のアプリイン…

Nginx でベーシック認証をかける手順メモ

nginx.conf ファイルの存在するディレクトリに移動して htpasswd ファイルを作成する。 $ cd /etc/nginx $ sudo htpasswd -c htpasswd <username> 新規に作成するユーザのパスワードが求められるので入力する。nginx.conf を編集する前に念のためバックアップとる。 $ </username>…

How to get status of Nginx HttpProxyModule (proxy_cache) - Just Logging and Collecting Log

Introduction I run a Unicorn + Nginx server with cache by HttpProxyModule. I'd like to get status of cache, for example, in memcached, we can get status like this. But, it seems there are no commands for doing that. Finally, my co-worker a…