summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBOA Dev Team2019-01-09 15:51:47 (GMT)
committerBOA Dev Team2019-01-09 15:51:47 (GMT)
commit37714fff76a9169a6710202deecd6f7f988f99f1 (patch)
tree44189f7e5cd9f1b3d5d1c5bcd9a68a622b042af4
parente01714f89b2ce84820a3515337904d61d984c0e5 (diff)
Nginx: Fix support for dynamic .json requests
-rw-r--r--http/Provision/Config/Nginx/Inc/vhost_include.tpl.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php b/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
index 1fa1bc3..8d7ca1f 100644
--- a/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
+++ b/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
@@ -788,6 +788,13 @@ location ~* \.(?:js|htc)$ {
}
###
+### Support for dynamic .json requests.
+###
+location ~* \.json$ {
+ try_files $uri @drupal;
+}
+
+###
### Support for static .json files with fast 404 +Boost compatibility.
###
location ~* ^/sites/.*/files/.*\.json$ {
@@ -805,13 +812,6 @@ location ~* ^/sites/.*/files/.*\.json$ {
}
###
-### Support for dynamic .json requests.
-###
-location ~* \.json$ {
- try_files $uri @cache;
-}
-
-###
### Helper location to bypass boost static files cache for logged in users.
###
location @uncached {