nginxのリバースプロキシ(proxy_pass)を設定する方法

設定メモ:
server {
listen 80;
server_name localhost;
charset utf8;
access_log /var/log/nginx_api/access.log;
error_log /var/log/nginx_api/error.log;
location / {
root html;
index index.html index.htm;
}
location /apis {
rewrite ^.+apis/?(.*)$ /$1 break;
include uwsgi_params;
proxy_pass http://xxx.xxx.xxx.xxx/apis;
}
}

Nginx

Posted by arkgame