location /wxapi { proxy_pass http://flower-wx-api; ## 指定HOST proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Port $server_port; }
转载于:https://www.cnblogs.com/fyy1003668657/p/10417877.html