diff --git a/dispatcher/pom.xml b/dispatcher/pom.xml index 28060107a7..fce80ed117 100644 --- a/dispatcher/pom.xml +++ b/dispatcher/pom.xml @@ -59,13 +59,13 @@ src/conf.d/dispatcher_vhost.conf - b30900e92c6995dfa6c68efcf159f4f0 + b27855383754854932170e282fbf643a md5 There have been changes detected in a file which is supposed to be immutable according to https://docs.adobe.com/content/help/en/experience-manager-cloud-service/implementing/content-delivery/disp-overview.html#file-structure: src/conf.d/dispatcher_vhost.conf src/conf.d/rewrites/default_rewrite.rules - 92800e1502954d8038b103f027cee332 + 8b866275685509537f6ab0397ddeda53 md5 There have been changes detected in a file which is supposed to be immutable according to https://docs.adobe.com/content/help/en/experience-manager-cloud-service/implementing/content-delivery/disp-overview.html#file-structure: src/conf.d/rewrites/default_rewrite.rules @@ -83,7 +83,7 @@ src/conf.dispatcher.d/cache/default_rules.any - daf2c7e3b81a862f5ee4f27b4c22de2f + bc9135f627dd2c813373950d7cb71af4 md5 There have been changes detected in a file which is supposed to be immutable according to https://docs.adobe.com/content/help/en/experience-manager-cloud-service/implementing/content-delivery/disp-overview.html#file-structure: src/conf.dispatcher.d/cache/default_rules.any diff --git a/dispatcher/src/conf.d/dispatcher_vhost.conf b/dispatcher/src/conf.d/dispatcher_vhost.conf index 4949e9306c..57d466b32c 100644 --- a/dispatcher/src/conf.d/dispatcher_vhost.conf +++ b/dispatcher/src/conf.d/dispatcher_vhost.conf @@ -63,14 +63,6 @@ Alias "/system/probes/start" /etc/httpd/probes/startup-status.json RewriteRule ^/(.*)$ - [R=404,L] - - SSLProxyEngine on - - RewriteCond %{ENV:ENABLE_GRAPHQL_ENDPOINT} ^$ [OR] - RewriteCond %{ENV:ENABLE_GRAPHQL_ENDPOINT} ^false$ - RewriteRule ^/(.*)$ - [R=404,L] - - # If the module loads correctly then apply base settings for the module @@ -116,6 +108,11 @@ Alias "/system/probes/start" /etc/httpd/probes/startup-status.json Header unset Age +# SITES-3659 Prevent re-encodes of URLs sent to GraphQL Persisted Queries API endpoint + + ProxyPassMatch http://${AEM_HOST}:${AEM_PORT} nocanon + + # (legacy) Allow ingressroute checks through on /systemready (regardless of dispatcher filters) ProxyPass http://${AEM_HOST}:${AEM_PORT}/systemready diff --git a/dispatcher/src/conf.d/rewrites/default_rewrite.rules b/dispatcher/src/conf.d/rewrites/default_rewrite.rules index 42215053f2..72387e8380 100644 --- a/dispatcher/src/conf.d/rewrites/default_rewrite.rules +++ b/dispatcher/src/conf.d/rewrites/default_rewrite.rules @@ -37,3 +37,7 @@ RewriteRule .* - [F] # Block wp-login RewriteRule ^.*wp-login - [F,NC,L] + +# Allow caching of persisted queries +RewriteCond %{REQUEST_URI} ^/graphql/execute.json +RewriteRule ^/(.*)$ /$1;.json [PT,L] \ No newline at end of file diff --git a/dispatcher/src/conf.dispatcher.d/cache/default_rules.any b/dispatcher/src/conf.dispatcher.d/cache/default_rules.any index 8ced38ce2a..f51d675722 100644 --- a/dispatcher/src/conf.dispatcher.d/cache/default_rules.any +++ b/dispatcher/src/conf.dispatcher.d/cache/default_rules.any @@ -38,9 +38,3 @@ /glob "/screens/channels.json" /type "deny" } - -# GraphQL cache rules for persistent queries -/0020 { - /glob "/graphql/execute.json/*" - /type "deny" -}