一、Nginx配置代理,是指向到另外一个服务器,但是URL地址不变。
server {
listen 8080;
server_name localhost;
location /appcenter-main {
#代理地址
proxy_pass http://localhost:8081/appcenter-main;
#代理连接时间
proxy_connect_timeout 2;
#代理读取时间
proxy_read_timeout 3;
#代理发送时间