内容简介:三台服务器, 部署软件分别为:nginx 作为反向代理, 实现用下面的URL地址来访问 Portal 和 Server
三台服务器, 部署软件分别为:
| 服务器 | 软件 | Web 地址 |
|---|---|---|
| agportal.local | Portal for ArcGIS 10.6 | https://agportal.local:7443/arcgis/ |
| agserver.local | Server for ArcGIS 10.6 | https://agserver.local:6443/arcgis/ |
| nginx.local | Nginx | https://nginx.local/ |
nginx 作为反向代理, 实现用下面的URL地址来访问 Portal 和 Server
- 使用 https://nginx.local/gisportal/ 访问 Portal for ArcGIS;
- 使用 https://nginx.local/gisserver/ 访问 Server for ArcGIS;
ArcGIS Server 配置
- 访问 https://agserver.local:6443/arcgis/admin , 以管理员身份登录;
-
选择
System>Properties>Update; -
在
Properties文本框中,插入以下 JSON:{ "WebContextURL": "https://nginx.local/gisserver" } -
点击
Update按钮, 等待服务器更新完成; - 登录到服务器, 重启 ArcGIS Server ;
ArcGIS Portal 配置
- 访问 https://agportal.local:7443/arcgis/portaladmin , 以管理员身份登录;
-
选择
System>Properties>Update; -
在
Properties文本框中,插入以下 JSON:{ "WebContextURL": "https://nginx.local/gisportal" } - 登录到服务器, 重启 ArcGIS Portal ;
NGINX 配置
-
nginx 配置 https 证书, 这个是必须的。
-
反代 Server for ArcGIS 配置:
location /gisserver { proxy_pass https://agserver.local:6443/arcgis; proxy_read_timeout 600s; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; # ArcGIS Server 要求必须添加 X-Forwarded-Host 反代标头 proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } -
反代 Portal for ArcGIS 配置
location /gisportal { proxy_pass https://agportal.local:7443/arcgis; proxy_read_timeout 600s; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; # ArcGIS Server 要求必须添加 X-Forwarded-Host 反代标头 proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } -
使用命令
nginx -s reload重新加载配置
以上所述就是小编给大家介绍的《ArcGIS Enterprise 配置 nginx 反向代理》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Head First Rails
David Griffiths / O'Reilly Media / 2008-12-30 / USD 49.99
Figure its about time that you hop on the Ruby on Rails bandwagon? You've heard that it'll increase your productivity exponentially, and allow you to created full fledged web applications with minimal......一起来看看 《Head First Rails》 这本书的介绍吧!