KZKY memo

自分用メモ.

nginx

Nginx + uWSGI

これを参考にすると大体分かる.Nginxをreverse proxyとして使う場合は, uwsgi --http-socket ...でなく uwsgi --socket をつかうこと.そうしないと, <html> <head><title>502 Bad Gateway</title></head> <body bgcolor="white"> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.4.6 (Ubuntu)</center> </body> </html> が返ってきた.documentでは,--http-…