使用产品:iserver 9d 9.1.2a-win64 操作系统:windows server 2012 r2 x64
数据类型: windows sql server 2008 r2
生产环境有端口限制,一台机器上有两个服务,打算根据域名不同用nginx做转发,但是转发到iServer以后会导致访问下面的API出现400错误:
iserver/manager/validation.json?_t=1581774065028
相应结果:{"succeed":false,"error":{"code":400,"errorMsg":"ValidateInfo is necessary"}}
nginx转发配置
server {
listen 80;
server_name gis.xxxxx.com;
location / {
proxy_pass http://localhost:8081;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}