]> git.openstreetmap.org Git - rails.git/blobdiff - config/nginx.conf
Strip asset tags from user images.
[rails.git] / config / nginx.conf
index ae779854686bafb52270be786e6a0efb7012ec27..7cde7741b72b4f188ff48d7ec5aa3ed0eaaba231 100644 (file)
@@ -145,7 +145,7 @@ http {
         }
     
         # Strip asset tags
-        location ~ ^/(images|javascripts|openlayers|stylesheets)/ {
+        location ~ ^/(images|javascripts|openlayers|stylesheets|user/image)/ {
             rewrite ^/(.*)/[0-9]+$ /$1;
         }
 
@@ -220,10 +220,10 @@ http {
 
         # Set the MIME type for crossdomain.xml policy files
         # or flash will ignore it
-        location ~ /crossdomain\.xml {
-                       types {
-                               text/x-cross-domain-policy xml;
-                       }
+        location ~ /crossdomain\.xml$ {
+            types {
+                text/x-cross-domain-policy xml;
+            }
         }
     }
 }