写在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;
            
        }
        
    }

 

nginx反向代理的配置

相关文章:

  • 2021-09-13
  • 2021-04-18
  • 2021-08-08
猜你喜欢
  • 2021-10-18
  • 2022-12-23
  • 2022-01-07
  • 2021-07-05
  • 2021-11-28
相关资源
相似解决方案