From dcbc801cbe8d46ef7a5ac785d66ad0a54f8773e1 Mon Sep 17 00:00:00 2001
From: Thai Phan <thai@outlook.com>
Date: Tue, 26 Jan 2016 19:26:28 +1100
Subject: [PATCH] Update nginx.conf.sample

I replaced the `?` characters with `$is_args`. `$is_args` returns `?` if a request line has arguments or an empty string if otherwise.
---
 nginx.conf.sample | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/nginx.conf.sample b/nginx.conf.sample
index 87b28aa9f69..1897d59bfae 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";
 }
-- 
GitLab