/usr/local/nginx/conf
nginx.conf
文件location / {
root html;
index index.html index.htm;
proxy_pass http://127.0.0.1:8888;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
nginx -t
nginx -s reload
完成!