<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multiple Reverse Proxies in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658290#M25167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think there is nothing to fix in ArcGIS Server. X-FORWARDED-HOST should have only last HOST name, not 2 hosts separated by comma. Multiple Windows IIS Reverse proxies does not have this problem at all (due to the fact that X-FORWARDED-HOST have only one, last,&amp;nbsp; HOST name).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jun 2013 13:40:19 GMT</pubDate>
    <dc:creator>PeterKovalchuk</dc:creator>
    <dc:date>2013-06-14T13:40:19Z</dc:date>
    <item>
      <title>Multiple Reverse Proxies</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658283#M25160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have an ArcGIS Server 10.1 instance that sits behind 2 corporate reverse proxies (Apache). Basically in this configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; ArcGIS Server&amp;nbsp; ---Reverse Proxy 2----&amp;nbsp;&amp;nbsp; Internal Site&amp;nbsp;&amp;nbsp; ----Reverse Proxy 1----&amp;nbsp;&amp;nbsp;&amp;nbsp; External Site&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reverse proxies we are using utilise Apache and are configured based on the info below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reverse Proxy 2 configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProxyPass&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /arcgis/rest/&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://arcgisserver_address:6080/arcgis/rest/"&gt;http://arcgisserver_address:6080/arcgis/rest/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;ProxyPassReverse /arcgis/rest/&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt; arcgisserver_address:6080/arcgis/rest/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProxyPass&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /arcgis/tokens/&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://arcgisserver_address:6080/arcgis/tokens/"&gt;http://arcgisserver_address:6080/arcgis/tokens/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;ProxyPassReverse /arcgis/tokens/&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://arcgisserver_address:6080/arcgis/tokens/"&gt;http://arcgisserver_address:6080/arcgis/tokens/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;ProxyPass&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /arcgis/services/&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://arcgisserver_address:6080/arcgis/services/"&gt;http://arcgisserver_address:6080/arcgis/services/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;ProxyPassReverse /arcgis/services/&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://arcgisserver_address:6080/arcgis/services/"&gt;http://arcgisserver_address:6080/arcgis/services/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;ProxyPass&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /arcgis/sdk/&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://arcgisserver_address:6080/arcgis/services/"&gt;http://arcgisserver_address:6080/arcgis/services/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;ProxyPassReverse /arcgis/sdk/&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://arcgisserver_address:6080/arcgis/services/"&gt;http://arcgisserver_address:6080/arcgis/services/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reverse Proxy 1 configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProxyPass&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://internalsite_address/"&gt;http://internalsite_address/&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProxyPassReverse&amp;nbsp; /&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://internalsite_address/"&gt;http://internalsite_address/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This largely works ok however some components of the ArcGIS server REST endpoint do not function correctly as it appears that some of the java libraries used by the pages appear to pickup the fact that the request has been parsed through via a reverse proxy and utilise one of the following HTTP headers X-FORWARDED_HOST or X-FORWARDED-SERVER. This works ok when there is only 1 proxy however when there are two (or more) proxies these headers contain a comma separated list of all proxies. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I.e in the case of the above example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;X-FORWARDED-HOST = externalsite_address, internalsite_address&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This causes issues with many rest pages that when returned have malformed URLs as they contain multiple comma separated domains including the javascript map preview, the wmts capabilities and the links at the top of all rest pages (to name a few).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This can be fixed partially by modifying some of the JSP files used however it is not possible with some such as the the page you are redirected to after login. Fixing the JSPs involves converting the urls to just the absolute path not a fully qualified url. This is not an ideal solution and will cause maintenance issues in the future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The best overall solution would be for ESRI to look at changing the behavior of some of the classes used including:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.esri.discovery.app.util.DiscoveryUrlUtil&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.esri.client.app.util.ClientUrlUtil&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.esri.rf.util.RUtil&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wouldn't have thought we are the only organisations using a chain of reverse proxies. Has any one else experienced these problems and if so how have you dealt with them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart Fletcher&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 01:28:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658283#M25160</guid>
      <dc:creator>StuartFletcher1</dc:creator>
      <dc:date>2012-09-13T01:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Reverse Proxies</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658284#M25161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had a response from Esri in relation to this issue. It can be fixed by updating an ArcGIS parameter&amp;nbsp; called WebContextURL .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/server-admin-api/serverProperties.html"&gt;http://resources.arcgis.com/en/help/server-admin-api/serverProperties.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Go to: &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/arcgisserver_address:port/arcgis/admin/system/properties"&gt;http://arcgisserver_address:port/arcgis/admin/system/properties&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- Click on "Update"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- In the open window put the following: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;{"WebContextURL": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://externalsite_address/arcgis" rel="nofollow" target="_blank"&gt;http://externalsite_address/arcgis&lt;/A&gt;&lt;SPAN&gt;"}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Click Update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should also let you have different REST paths i.e /myserver/rest/services&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart Fletcher&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 03:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658284#M25161</guid>
      <dc:creator>StuartFletcher1</dc:creator>
      <dc:date>2012-10-03T03:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Reverse Proxies</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658285#M25162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An update on the issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI have updated their 10.1 documentation to reflect the above solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//01550000042s000000" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//01550000042s000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However it doesn't look like all components of ArcGIS Server honor the WebContextURL parameter. One example is publishing a service for Mobile Data Access. ArcMobile accesses the services via SOAP and the SOAP WSDL still returns invalid soap address with both reverse proxy addresses. See fragment of the WSDL below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;service name="Catalog"&amp;gt;
&amp;lt;port name="ServiceCatalogPort" binding="e:ServiceCatalogBinding"&amp;gt;
&amp;lt;soap:address location="http://developext.thelist.tas.gov.au, develop2.thelist.tas.gov.au/arcgis/services/BaseMaps/Topographic/MobileServer"/&amp;gt;
&amp;lt;/port&amp;gt;
&amp;lt;/service&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart Fletcher&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:51:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658285#M25162</guid>
      <dc:creator>StuartFletcher1</dc:creator>
      <dc:date>2021-12-12T03:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Reverse Proxies</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658286#M25163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stuart,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for posting this message. We can reproduce the reported behavior with multiple reverse proxies:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Some of the links&amp;nbsp; in the Services Directory are incorrect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. rest/info resource returns both X-Forwarded-* host information in the url returned for SOAP and Token Services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. In wsdl&amp;nbsp; soap:address location returns both X-Forwarded-* host information in the url.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have submitted a bug (NIM085692) and will address this in the next service pack (10.1 SP2). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ravi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 15:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658286#M25163</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2012-10-16T15:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Reverse Proxies</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658287#M25164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ravi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a workaround existing to solve this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could we edit settings directly in the wsdl files of ArcGIS Server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stephan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 10:31:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658287#M25164</guid>
      <dc:creator>StephanKünster</dc:creator>
      <dc:date>2013-05-28T10:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Reverse Proxies</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658288#M25165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We're experiencing the exact same problem.&amp;nbsp; Glad to hear it will be addressed in 10.1 SP2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you provide any more details on how it's going to be addressed?&amp;nbsp; Will it strip down the comma-separated values from X-Forwarded-Host and use only one value (looks like using only the first value is the right thing to do, at least in my case).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm really pleased that AGS 10.1 is trying to be smart about returned URLs in JSON (and other) responses - it's a bit improvement over the "virtual directories" that had to be hand-built in 10.0 and earlier.&amp;nbsp; I just wish that (1) it was better documented (I discovered this behavior entirely accidentally) and (2) was just a little bit smarter about the comma-separated values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The WebContextURL isn't a good solution for us since it appears to be server-wide, not per-service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 14:02:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658288#M25165</guid>
      <dc:creator>DavidRush</dc:creator>
      <dc:date>2013-06-03T14:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Reverse Proxies</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658289#M25166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ravi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Similar to David Rush, I'm very interested in hearing more details regarding how the problem described in this thread will be addressed? "Will it strip down the comma-separated values from X-Forwarded-Host and use only one value (looks like using only the first value is the right thing to do, at least in my case)" (and in ours, btw) Or, is ESRI simply planning on making the WebContextURL property honoured more thoroughly? Will the fix address the issue in SOAP WSDL's URLs only (NIM085692)? Or, will it be a generic fix that will deal with any component that is currently utilizing the X-Forwarded host information and parse it accordingly when comma-delimited? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason I ask is because we are having a similar problem to that described in this thread (that is, routing traffic through multiple proxy servers). Our configuration is slightly more complicated in that there is one more reverse proxy in the loop than has been described. Using Stuart's original example, our "Reverse Proxy 2" routes requests to a Web Adaptor (another proxy) for load balancing multiple ArcGIS Servers rather than pointing directly to an individual ArcGIS Server as I'm guessing his example does. In our scenario, setting the WebContextURL property hasn't helped us at all...not even in the REST pages where we are unable to view our services in "ArcGIS JavaScript" (from the REST HTML page, I mean).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although I searched the forum about this issue last week, I did not find this thread for some reason and created a new one describing my own situation more fully. If it's of any help in terms of ensuring the planned "fix" will handle multiple "multiple-proxy" scenarios, here's a link to a description of another one: forums.arcgis.com/threads/86264-quot-View-In-ArcGIS-JavaScript-quot-in-HTML-fails-when-routing-through-multiple-proxy-servers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, has an approach for addressing the multiple proxy routing problem been determined? Or is ESRI still ruminating on that one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jtm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 18:32:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658289#M25166</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2013-06-13T18:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Reverse Proxies</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658290#M25167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think there is nothing to fix in ArcGIS Server. X-FORWARDED-HOST should have only last HOST name, not 2 hosts separated by comma. Multiple Windows IIS Reverse proxies does not have this problem at all (due to the fact that X-FORWARDED-HOST have only one, last,&amp;nbsp; HOST name).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 13:40:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658290#M25167</guid>
      <dc:creator>PeterKovalchuk</dc:creator>
      <dc:date>2013-06-14T13:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Reverse Proxies</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658291#M25168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately, this does not seem to be the case with Apache; unless someone is aware of some way to disable this behaviour when working with proxies there?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheere,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jtm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 15:58:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658291#M25168</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2013-06-14T15:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Reverse Proxies</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658292#M25169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I ran into this same issue running two reverse proxies with Apache. After some digging in the Apache documentation I found the following solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Architecture:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;client --&amp;gt; ApacheReverseProxy1 --&amp;gt; ApacheReverseProxy2 --&amp;gt; ArcGIS Server&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When just following the reverse proxy directions you can view the "double X-Forwarded-Host" issue using two reverse proxies within a Wireshark trace at the client:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]25958[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution is to use/load the Apache "headers_module" and unset the X-Forwarded-Host header on the ApacheReverseProxy2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So add the following line in the httpd.conf file on the ApacheReverseProxy2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;LoadModule headers_module /usr/lib/apache2-prefork/mod_headers.so&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And add the following line in the virtual host file of your ApacheReverseProxy2 website YourVirtualHost.conf:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;RequestHeader unset X-Forwarded-Host&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Your Apache setup might be slightly different but you get the idea)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you now run a new Wireshark trace from the client you will see that the double host entry is removed and your AGS will work as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]25959[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 12:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658292#M25169</guid>
      <dc:creator>Sanderten_Arve1</dc:creator>
      <dc:date>2013-07-16T12:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Reverse Proxies</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658293#M25170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sander,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your response. It's been a while since I was working on this (a month seems like forever these days) but, if I understand you properly, I tried what you are suggesting at that time and it did not work given our particular architecture. From what I remember, unset-ting the X-Forwarded-Host meant that the ArcGIS Server was creating a path something like (using your example) &lt;/SPAN&gt;&lt;A href="http://ApacheReverseProxy2/rest/services/"&gt;http://ApacheReverseProxy2/rest/services/&lt;/A&gt;&lt;SPAN&gt;... which is not an Apache server that the Internet has direct access to. It is forbidden. For us, the path has to be &lt;/SPAN&gt;&lt;A href="http://ApacheReverseProxy1/rest/services"&gt;http://ApacheReverseProxy1/rest/services&lt;/A&gt;&lt;SPAN&gt; in that case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I get a moment, I will try this again to verify what I am remembering is correct ... perhaps I just made a mistake somewhere along the way before. I was trying a LOT of things at the time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll let you know how it goes...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jtm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 14:18:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658293#M25170</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2013-07-16T14:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Reverse Proxies</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658294#M25171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, yes, I am remembering this correctly. I appreciate your taking the time to make the suggestion, Sander, and hope it can help others. In our environment, unfortunately, it doesn't solve the problem because we forbid direct access to ApacheReverseProxy2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI, in the interim, we have received approval to add another RewriteRule on the organization's proxy server that directs the /rest/services traffic directly to the Web Adaptor host rather than through our application-specific host. They are not happy about it and they want it removed. However, there does not appear to be any other way around the problem with ArcGIS Server 10.1. We are waiting to see what the "fix" is that Ravi mentioned previously and to learn if it handles Apache's implementation to set values for the X-Forwarded-Host header key (when going through a proxy) rather than just IIS's.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jtm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 15:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/multiple-reverse-proxies/m-p/658294#M25171</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2013-07-16T15:21:39Z</dc:date>
    </item>
  </channel>
</rss>

