-
-
Save AysadKozanoglu/e892b930f92a738f1cc4e627cb1d6895 to your computer and use it in GitHub Desktop.
nginx Flash XML policy server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this to your nginx.conf under http { } | |
server { | |
listen 843; | |
server_name localhost; | |
location / { | |
rewrite ^(.*)$ /crossdomain.xml; | |
} | |
error_page 400 /crossdomain.xml; | |
location = /crossdomain.xml { | |
root /var/www/crossdomain; | |
} | |
} | |
# In /var/www/crossdomain, create a crossdomain.xml file: | |
<?xml version="1.0"?> | |
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> | |
<cross-domain-policy> | |
<allow-access-from domain="*" secure="false" to-ports="*"/> | |
<site-control permitted-cross-domain-policies="master-only" /> | |
</cross-domain-policy> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this works nice for me . nginx 1.10.2