Where can I put the 'crossdomain.xml' file in the MapProxy virtual enviroment ?

[UPDATE] [NEED TAGS for question: mod-wsgi, ogcserver too] Need to be more specific:

i'm using mapproxy 1.4 in mod-wsgi. The same problem I had found in OGCServer (mod-wsgi). Where have i to put the crossdomain.xml in a mod-wsgi server like Mapproxy or OGCServer?

Thanks again.


Usually it is in root folder of your webserver environment. This example is working setup for xampp-php-postgresql+geoserver (my personal choice). To bypass flashplayer security restrictions such as to enable access for bitmap manipulation i put this crossdomain policy file

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <allow-access-from domain="*"/>
    <site-control permitted-cross-domain-policies="by-content-type"/>

in these two locations:

path for xampp-> xampp_installation_path\htdocs\crossdomain.xml
path for geoserver-> geoserver_installation_path\webapps\root\crossdomain.xml
| improve this answer | |
  • I'm sorry, I had to be more specific: I'm using Mapproxy in mod-wsgi. – Raffaello Aug 17 '12 at 12:09
  • thanks, but it's more complicated in my case. The service is running in mod-wsgi and I tried all the "root" path for crossdomain but none worked. – Raffaello Aug 17 '12 at 12:16
  • i'm not sure, but perhaps you need to manually call the Security.loadPolicyFile() method to tell flash player to request the policy file over http instead of xmlsocket. This link might be useful – ranggalawe Aug 17 '12 at 21:44
  • It was only a problem of 'croosdomain.xml' file and a configuration for the ISS/APACHE .. – Raffaello Oct 4 '12 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.