Nginx在位置使用占位符(nginx.conf)

时间:2016-05-30 17:38:30

标签: ssl nginx proxy nginx-location

我想使用nginx作为反向ssl代理。

我有一个带有多个api的重置服务,我希望在位置配置中有一个占位符并在proxy_pass中使用它

location /myapp/(\s+)/(\s+) {
        proxy_pass  http://localhost:9000/$1/$2;

  }

知道我该怎么做?

0 个答案:

没有答案