Configure reverse proxy for ArcGIS Server

Source: Internet
Author: User
Generally, ArcGIS Server is located on the local network after the Web server. in the production environment, this network is generally kept confidential and located after the firewall, this is one of the reasons why ArcGIS Server does not recommend enabling the firewall on the local network. However, the firewall is not enabled (or the firewall is enabled but ports such as port 8399 need to be opened) for psychological comfort or strange (or as a last resort) deployment methods) sometimes unacceptable; or, the ArcGIS Server is also deployed in different network segments in various situations-in this case, reverse proxy needs to appear. For example, the access method of ArcGIS Server is http: //: 8399/ArcGIS/services /...
After configuring the reverse proxy, you can use http: // ArcGIS/services /...
To access the ArcGIS service. At the same time, you can only open port 80 on the proxy_host host configured for the proxy. All arcgis_host hosts are located after the proxy host, and the Web server only uses the ArcGIS service through the proxy host, you have no chance to directly access ArcGIS Server. Well, now you can deploy ArcGIS Server. You only need to tell the proxy host where your ArcGIS Server is, and Web services can use these services, arcGIS Server is transparent to Web servers. You can use Apache (mod_proxy module) or some other servers to configure reverse proxy. I prefer the simplicity and efficiency of nginx. For example, you can use the following configuration file to configure a Server Load balancer reverse proxy server: upstream ArcGIS {
# Different ArcGIS Server hosts
Server 192.168.1.1: 8399;
Server 192.168.1.2: 8399;
Server 192.168.2.1: 8399;
Server 192.168.2.2: 8399;
} Server {
Listen 80;
SERVER_NAME localhost; Location /{
Proxy_pass http: // ArcGIS
;
Proxy_redirect off;
Proxy_set_header host $ host;
Proxy_set_header X-real-IP $ remote_addr;
Proxy_set_header X-forwarded-for $ proxy_add_x_forwarded_for;
Proxy_next_upstream error timeout invalid_header http_500 http_504 http_404;
}
} After the configuration is complete, use the nginx-s reload command to re-load the configuration, and the reverse proxy is updated. In this case, access port 80 of the proxy host directly and use the services on the ArcGIS Server Host.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.