diff --git a/nginx.conf.sample b/nginx.conf.sample index 87b28aa9f691d..1897d59bfae9b 100644 --- a/nginx.conf.sample +++ b/nginx.conf.sample @@ -65,7 +65,7 @@ location /update { } location / { - try_files $uri $uri/ /index.php?$args; + try_files $uri $uri/ /index.php$is_args$args; } location /pub { @@ -105,7 +105,7 @@ location /static/ { } location /media/ { - try_files $uri $uri/ /get.php?$args; + try_files $uri $uri/ /get.php$is_args$args; location ~ ^/media/theme_customization/.*\.xml { deny all; @@ -115,13 +115,13 @@ location /media/ { add_header Cache-Control "public"; add_header X-Frame-Options "SAMEORIGIN"; expires +1y; - try_files $uri $uri/ /get.php?$args; + try_files $uri $uri/ /get.php$is_args$args; } location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { add_header Cache-Control "no-store"; add_header X-Frame-Options "SAMEORIGIN"; expires off; - try_files $uri $uri/ /get.php?$args; + try_files $uri $uri/ /get.php$is_args$args; } add_header X-Frame-Options "SAMEORIGIN"; }