Skip to content
Snippets Groups Projects
Commit 57dedd11 authored by Oleksii Korshenko's avatar Oleksii Korshenko
Browse files

MAGETWO-56717: [GITHUB][PR] Update nginx.conf.sample #3137

 - Merge branch 'patch-1' of https://github.com/thaiphan/magento2 into thaiphan-patch-1
parents 2008804f dcbc801c
Branches
No related merge requests found
......@@ -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";
}
......
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