rewrite ^/(0\.[0-9]+)/(.*)$ /api/$1/$2;
rewrite ^/capabilities$ /api/capabilities;
}
-
+
# Strip asset tags
- location ~ ^/(images|javascripts|openlayers|stylesheets)/ {
+ location ~ ^/(images|javascripts|openlayers|stylesheets|user/image)/ {
rewrite ^/(.*)/[0-9]+$ /$1;
}
# 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;
+ }
}
}
}