写在nginx.conf 的 http {} 内
server {
listen 8848;需要代理的IP端口
server_name 127.0.0.1; 需要代理的IP
charset utf-8;
location /tksecurity { #需要代理的地址
proxy_pass http://86.127.224.160:8080/tksecurity/; #转向目标地址
index index.html index.htm index.jsp;
}
}