diff --git a/nginx.conf.sample b/nginx.conf.sample index 36adc71d0c3161412a7b4ba283b1a021ab3fcf5a..ec524374900f64b4ed0307ae8e17501e814a3f62 100644 --- a/nginx.conf.sample +++ b/nginx.conf.sample @@ -82,7 +82,7 @@ location ~* ^/update($|/) { } location / { - try_files $uri $uri/ /index.php?$args; + try_files $uri $uri/ /index.php$is_args$args; } location /pub/ { @@ -127,7 +127,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; @@ -137,13 +137,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"; }