mzp 发表于 2015-08-31 11:52

nginx代理URL问题

你好,现在有个项目tomcat发布的服务器url是 http://192.168.1.100:8080/test-web/
然后需要在前端配置一个nginx代理,希望的路径是 http://192.168.1.200/test/
测试这样的配置方式是不行的
    location /test/ {
      proxy_pass    http://192.168.1.100:8080/test-web/;
      proxy_set_header    X-Forwarded-For $remote_addr;
      proxy_set_header    Host $host;
    }
请问有没有代理方式url变换的方法,thanks......
页: [1]
查看完整版本: nginx代理URL问题