Skip to content
Snippets Groups Projects
Commit dcbc801c authored by Thai Phan's avatar Thai Phan
Browse files

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.
parent e7a0e89a
Branches
Tags
No related merge requests found
...@@ -65,7 +65,7 @@ location /update { ...@@ -65,7 +65,7 @@ location /update {
} }
location / { location / {
try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php$is_args$args;
} }
location /pub { location /pub {
...@@ -105,7 +105,7 @@ location /static/ { ...@@ -105,7 +105,7 @@ location /static/ {
} }
location /media/ { location /media/ {
try_files $uri $uri/ /get.php?$args; try_files $uri $uri/ /get.php$is_args$args;
location ~ ^/media/theme_customization/.*\.xml { location ~ ^/media/theme_customization/.*\.xml {
deny all; deny all;
...@@ -115,13 +115,13 @@ location /media/ { ...@@ -115,13 +115,13 @@ location /media/ {
add_header Cache-Control "public"; add_header Cache-Control "public";
add_header X-Frame-Options "SAMEORIGIN"; add_header X-Frame-Options "SAMEORIGIN";
expires +1y; 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)$ { location ~* \.(zip|gz|gzip|bz2|csv|xml)$ {
add_header Cache-Control "no-store"; add_header Cache-Control "no-store";
add_header X-Frame-Options "SAMEORIGIN"; add_header X-Frame-Options "SAMEORIGIN";
expires off; expires off;
try_files $uri $uri/ /get.php?$args; try_files $uri $uri/ /get.php$is_args$args;
} }
add_header X-Frame-Options "SAMEORIGIN"; add_header X-Frame-Options "SAMEORIGIN";
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment