【问题标题】:Nginx as a reverse proxy on IISNginx 作为 IIS 上的反向代理
【发布时间】:2019-01-20 11:01:56
【问题描述】:

我在 iis 上使用 nginx 作为反向代理。

可以导航到 company.com。 但是,company.com/market/product 不起作用。

这是我的conf;

location / {
        proxy_set_header Host $host;
        proxy_set_header X-Accel-Expires 0;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

IIS 在 inetpub\wwwroot\company Nginx 寻找 inetpub\wwwroot\company

提前谢谢你!

【问题讨论】:

    标签: nginx iis reverse-proxy nginx-reverse-proxy


    【解决方案1】:

    这就是答案;

    location / {
            try_files $uri /index.html;
        }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-04
      • 1970-01-01
      相关资源
      最近更新 更多