cd /etc/nginx/conf.d/
vim test.conf
upstream my_server {
server 192.168.100.100:11105;
keepalive 2000;
}
server {
listen 8080;
server_name 192.168.100.101;
client_max_body_size 1024M;
location /my_url {
proxy_pass http://my_server;
proxy_set_header Host $host:$server_port;
}
}
参考:https://blog.csdn.net/l1028386804/article/details/89961174
标签:192.168,server,Nginx,接口,conf,转发,my,proxy From: https://www.cnblogs.com/wangyuanguang/p/17058187.html