Remapping Output Directory to External IP (10.1)

631
7
07-05-2012 11:28 PM
PeterTimmers
Occasional Contributor III
Just a quick dumb question for 10.1 - haven't found it in help yet.

How do you remap the virtual directory of the output (and other) directories so the output in the rest is being published to an external address...

Not the internal machines name but what it appears if we're using an external url?    

ie.  http://internalmachinename:6080/arcgis/rest/directories/arcgisoutput/....
to
http://myurl.com/arcgis/rest/directories/arcgisoutput/...

I'm using the webadaptor and the firewall can only go through port 80....(another note, do I need to open port 6080 as well?)

10.0 wasn't that hard.
Tags (2)
0 Kudos
7 Replies
ShaunWeston
Occasional Contributor
Any help on this one?
0 Kudos
PeterTimmers
Occasional Contributor III
Any help on this one?


No.  I've rolled back to 10.0 till I can get this worked out.

Other people have said it does it automatically.  

We could be a special case, we did have trouble with 10 and SSL and firewalls/load balancers.
0 Kudos
ShaunWeston
Occasional Contributor
Oh ok, yeah well that's right after you install the web adaptor I thought it should handle this re-direct for you and with most servers I've worked with it does, however sometimes it doesn't and I'm working on a server at the moment where the arcgisjobs directory is coming out as:

http://pccgis07:6080/arcgis/rest/directories/arcgisjobs/tools/exportwebmap_gpserver/jfa77070607f94a5...



http://gis.pcc.govt.nz/arcgis/rest/directories/arcgisjobs/tools/exportwebmap_gpserver/jfa77070607f94...
And yeah at 10.0 you could change this in the ArcGIS Server properties, but at 10.1 you can't. I remember a colleague of mines fixed this using URL-redirect. Anyway, I'm looking into it.
0 Kudos
ShaunWeston
Occasional Contributor
Managed to fix this issue using URL-rewrite, check out my post here:

http://forums.arcgis.com/threads/63256-Web-Adaptor-Problem?p=220954#post220954

0 Kudos
DavidRush
New Contributor
Shaun:

Did you ever get any satisfactory resolution on this?  We're dealing with the same issue, where we can't find a place to modify the URL that's returned in JSON output from ArcGIS Server map export requests.

I have discovered, entirely accidentally, that ArcGIS Server 10.1 can automatically change that URL for you, to match the URL that you used to make the original export request.

We have a couple of reverse proxy servers and firewalls in front of our ArcGIS Server (AGS) box, but enough of the original export URL seems to be getting to AGS for it to change the URL in the JSON output to match.  I'll speculate that the info is coming in on the HTTP headers, so your reverse proxy(s) probably needs to preserve those.

In our case the URL in the JSON is a bit mangled right now, but is very close.  Working to fix that now.

I sure wish this behavior was documented somewhere.  Anyone?

David
0 Kudos
ShaunWeston
Occasional Contributor
Yeah we resolved it by installing the IIS re-write module and writtng some rules to change the URLs etc. It was a bit of a pain, but got it working in the end. It was also a bit slower using the IIS re-write rules.
0 Kudos
MayJeff
Occasional Contributor
Can you show me your URL re-write module?  I have the same problem.  Can't view it on external network.  I wish have document on ESRI site to show the steps.  Thanks.
0 Kudos