Select to view content in your preferred language

Crossdomain.xml for Flex API

3014
9
06-10-2011 05:33 AM
MichaelVolz
Esteemed Contributor
To All Flex API Developers:

I have a Reverse Proxy environment setup to allow a GIS web application to be accessible to the general public.  Using the FlexViewer, I needed to use the crossdomain.xml file to allow the web application through the Reverse Proxy server.

My question is do I need to also use a crossdomain.xml file when I am using the Flex API?

Any help or hints are greatly appreciated.  Thanks.
Tags (2)
0 Kudos
9 Replies
RobertScheitlin__GISP
MVP Emeritus
Michael,

   The use of a crossdoamin.xml file in a reverse proxy configuration is almost guaranteed, so the answer is yes. Your flex app should be using the fully gualified urls that get passed through your reverse proxy and not the machine name also.
0 Kudos
MichaelVolz
Esteemed Contributor
I have the crossdomain.xml file on my v9.3.1 ArcGIS Server server at c:\inetpub\wwwroot.  The Reverse Proxy server allows this file through in the services rule.  The webpage allows the mapservices to be drawn even though a get a 502 error when Fiddler reads in the crossdomain.xml file with the internal server name instead of the external server name (The Reverse Proxy expert says that this error should prevent the mapservice from showing up, but it does any way).

I have the crossdomain.xml file on my v10.0 ArcGIS Server server at c:\inetpub\wwwroot.  The Reverse Proxy server allows this file through in the services rule.  The webpage does not allow the mapservices to be drawn even as I a get a 502 error when Fiddler reads in the crossdomain.xml file with the internal server name instead of the external server name (This is the behavior that the Reverse Proxy expert would expect to see).

Any idea why the FlexViewer application works in v9.3.1 and not in v10.0?

Am I passing the crossdomain.xml through the correct rule on the Reverse Proxy server?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   In my reverse proxy configuration my reverse proxy server (appache in my case in the DMZ) has a copy of the crossdomain.xml, so I don't have a rule for it.
0 Kudos
MichaelVolz
Esteemed Contributor
Robert:

Where do you place it on the Reverse Proxy server?

Would I put it in a different location if I am using ISA or ForeFront?

Your assistance is greatly appreciated.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   Sorry I have no experienece with either of those.
0 Kudos
MichaelVolz
Esteemed Contributor
Robert:

Can you at least tell me the location of where you put this file for the Apache Reverse Proxy software, so I can try to modify the location for the ForeFront Reverse Proxy software?

Do you have your ArcGIS Server software on a Windows 2008 Server?  If so, did you need to modify any application pool settings to get the mapservices to work properly through the Reverse Proxy server?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   In Apache it is a folder called htdocs this is where you would load any html files that you want to serve from Apache.
0 Kudos
MichaelVolz
Esteemed Contributor
Robert:

So in Apache you do not place it in the root directory of the web applications which is c:\inetpub\wwwroot?

Also, do you have your ArcGIS Server software on a Windows 2008 Server? If so, did you need to modify any application pool settings to get the mapservices to work properly through the Reverse Proxy server?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   My reverse proxy in the DMZ only has a couple of files in the htdocs and one is the crossdomain.xml and the others are just html files that I use to indicate the server is down for maintenance. All my Flex Viewer files are inside the firewall in the IIS wwwroot folder of my ArcGIS Server. I do have 2 ArcGIS Servers with 2008 on them, and I did not have to do anything special to them. My Apache Revese Proxy just takes an address like http://gis.calhouncounty.org/somedirectory/someapp and directs that to one of my internal ArcGIS servers like http://server1:portnumber/somedirectory/someapp. Each of my internal ArcGIS Servers are running IIS. My firewall allows communication or the specified port to the internal server.
0 Kudos