Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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">
    <cross-domain-policy>
    <allow-access-from domain="*"/>
    <site-control permitted-cross-domain-policies="by-content-type"/>
</cross-domain-policy>

in these two locations:

path for xampp-> xampp_installation_path\htdocs\crossdomain.xml
path for geoserver-> geoserver_installation_path\webapps\root\crossdomain.xml
share|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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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