nginx

nginx をインストールする

nginx インストールまでの流れ % whereis nginx nginx: /usr/ports/www/nginx % cd /usr/ports/www/nginx % sudo make fetch-recursive % sudo make install clean インストールされたディレクトリ。 % ls -l /usr/local/sbin/nginx -r-xr-xr-x 1 root wheel…

nginx で SSL 証明書を作成したときの手順

秘密鍵の生成 # cd /etc/ssl # openssl sha1 /var/log/messages > rand.dat # ls openssl.conf rand.dat # openssl genrsa -rand rand.dat -des3 2048 > 20101128_key_with_pass.pem 66 semi-random bytes loaded Generating RSA private key, 2048 bit long…