English

Problem: Links in the Rest Services Directory refer to an internal host name instead of an external DNS name

Description

Hyperlinks in an externally available instance of the ArcGIS REST Services Directory refer to an internal host name instead of an externally available URL.

Cause

References in the rest.config file are not updated to reflect that these resources are available externally.

Solution or Workaround

The following steps detail how to make ArcGIS Server REST Services Directory resources available to internet clients.

  1. In Windows Explorer, browse to the ArcGIS Server instance. By default, the folder is located in c:\inetpub\wwwroot\ArcGIS; however, this location may vary depending on the configuration.
  2. Navigate to the REST folder, and open the REST.config file in Notepad, or any text editor.
  3. In the REST.config file, change all references to the local server name to the fully qualified domain name, except for the reference in the first <ServerName> tag, as follows:

    <ServerName>INTERNAL HOSTNAME</ServerName>
    <SoapUrl>http://EXTERNAL DNS NAME.com/arcgis/services</SoapUrl>
    <SoapSslUrl>https://EXTERNAL DNS NAME.com/arcgis/services</SoapSslUrl>
    <Identity>
    <EncodedString>XyXYXYXYXYXyxyXYXYXyxYXYXYXYXYXYXYXYYXYXYXYXY==</EncodedString>
    </Identity>
    </GISServer>
    <JsApi>
    <ArcGIS>http://serverapi.arcgisonline.com/jsapi/arcgis?v=1.2</ArcGIS>
    <ArcGISSDK>http://resources.esri.com/arcgisserver/apis/javascript/arcgis</ArcGISSDK> <ArcGISCSS>http://serverapi.arcgisonline.com/jsapi/arcgis/1.2/js/dojo/dijit/themes/tundra/tundra.css</ArcGISCSS>
    <VE>http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1</VE>
    <VEExtender>http://serverapi.arcgisonline.com/jsapi/ve?v=1.2</VEExtender>
    <VETerms>http://www.microsoft.com/virtualearth/product/terms.html</VETerms> <ArcGISVESDK>http://resources.esri.com/arcgisserver/apis/javascript/ve</ArcGISVESDK>
    <GMaps>http://maps.google.com/maps?file=api&v=2</GMaps> <GMapsExtender>http://serverapi.arcgisonline.com/jsapi/gmaps?v=1.2</GMapsExtender>
    <GMapsTerms>http://code.google.com/apis/maps/terms.html</GMapsTerms>
    <ArcGISGMapsSDK>http://resources.esri.com/arcgisserver/apis/javascript/gmaps</ArcGISGMapsSDK>
    <GMapsKey />
    </JsApi>
    <ServicesDirectoryHelpUrl>http://EXTERNAL DNS NAME.com/arcgis/SDK/REST/servicesdirectory.html</ServicesDirectoryHelpUrl>
    <Cache mode="manual">
    <Period>5</Period>
    <Time>00:00</Time>
    </Cache>
    <Compression enabled="true" />
    <ApiHelp baseUrl="http://EXTERNAL DNS NAME.com/arcgis/SDK/REST/index.html?">
  4. Restart the ArcGIS Server Object Manager service.