リバースプロキシの後ろでwebアプリを動かすテストしたいのでlocal環境にNginxを入れる。
Nginxのインストール
$ sudo port install nginx +ssl
追記:SSLを使う場合は +ssl が必要みたい
A Guide to PHP, MySQL and Nginx on Macports
設定ファイルを作成
$ cd /opt/local/nginx
$ sudo cp nginx.conf.default nginx.conf
$ sudo cp mime.types.default mime.types
Nginx起動
$ sudo nginx
ブラウザで検証
おk
More from my site
Trackback Uri
最近のコメント