Reverse Proxy - Web Adaptor - ArcGIS Server configuration

7865
5
Jump to solution
01-27-2014 07:08 PM
MasaakiABE
Esri Contributor
Hello,

I have been trying to set up a Reverse Proxy(RP) - Web Adaptor(WA) - ArcGIS Server(AGS) configuration with each component set up on the seperation machines(3 teirs). And I'm using ArcGIS 10.2 for Server.(Also tried this with ArcGIS 10.1 SP1 for Server)

I did manage to make it work following the instruction of a technical article and even made it work with Apache as reverse proxy.

So,clients access to the http://RPserver/arcgis/rest/services,
the reverse proxy forwards the request to http://WAserver/arcgis/rest/services.
Then Web Adaptor forwards the request to http://AGSserver:6080/arcgis/rest/services.

This configuration worked successfully.
But when I changed the url of the access point from the clients, the url of the response messed up and couldn't make it work.
Specifically, I change the url of the access point to http://RPserver/accesspoint/rest/services.
When I access the http://RPserver/accesspoint/rest/services, I get the top page of the Services Directory. But the all links in the pages
has http://RPserver/arcgis/rest/services. Therefore, I get 500 errors.

I did set the WebContextURL as http://RPserver/accesspoint, but WebContextURL didn't work when having Web Adaptor in between Reverse proxy and ArcGIS Server.
(If web adaptor's instance name is accesspoint, it works.)


Has anybody tried this configuration before?

My only solution so far without changing the internal settings/files of ArcGIS for Server is to not use ArcGIS Web Adaptor and have the following configuration.

Clients - Reverse Proxy 1 - Reverse Proxy 2 - ArcGIS Server.

Although I have a solution, my ideal goal here is

1) I want to use Web Adaptor
2) I want to change the URLs of RP and Web Adaptor for security reasons.
Tags (2)
1 Solution

Accepted Solutions
JeffSmith
Esri Contributor
Masaaki, yes, an enhancement request has been logged to address this but I'm not sure of the time frame for when it might be implemented.

View solution in original post

0 Kudos
5 Replies
JeffSmith
Esri Contributor
The issue you are seeing when linking a reverse proxy to a web adaptor to ArcGIS Server is a known limitation when the context name is different between the reverse proxy and the web adaptor.  As you have already mentioned, the webContextUrl parameter for ArcGIS Server is only applied when there is no web adaptor in the configuration.  The two solutions I can think of are ones you have already described.

1. Remove the web adaptor from the configuration and specify the external url in the webContextUrl parameters in the ArcGIS Server Admin API.  This matches this configuration:

Clients - Reverse Proxy 1 - Reverse Proxy 2 - ArcGIS Server.

2. Install a second web adaptor called 'accesspoint' and configure your reverse proxy to redirect to the 'accesspoint' web adaptor url to access ArcGIS Server.  You can leave the 'arcgis' web adaptor in place if you'd like or uninstall it.  It won't impact ArcGIS Server having multiple web adaptors.

Hopefully one of those will work for you.
0 Kudos
MasaakiABE
Esri Contributor
Jeff, thank you very much for the reply.

I will use two reverse proxies in front of AGS for now.

Is there any plan Esri will work on the limitation?

Regards,

Masaaki
0 Kudos
JeffSmith
Esri Contributor
Masaaki, yes, an enhancement request has been logged to address this but I'm not sure of the time frame for when it might be implemented.
0 Kudos
MasaakiABE
Esri Contributor
Jeff, Thank you.
0 Kudos
MasaakiABE
Esri Contributor

Working with Portal with multiple proxies.

I found the following link is very useful.

http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/System_Properties/02r300000296000000...

0 Kudos