Nginx
はじめに Amazon AWS 環境下で Rails 3 のアプリを Nginx/Unicorn で動くように Capistrano 3 でデプロイする手順をまとめました。 以下を前提に話を進めます デプロイ対象のアプリ/DBインスタンスはすでにつくられているとします デプロイ対象のアプリイン…
nginx.conf ファイルの存在するディレクトリに移動して htpasswd ファイルを作成する。 $ cd /etc/nginx $ sudo htpasswd -c htpasswd <username> 新規に作成するユーザのパスワードが求められるので入力する。nginx.conf を編集する前に念のためバックアップとる。 $ </username>…
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…