Skip to content

Commit 1c4b5e3

Browse files
author
Sergey Shvets
committed
Merge branch 'MAGETWO-62606' of github.com:magento-east/magento2ce into pr-dev
2 parents d3a7066 + b96fa92 commit 1c4b5e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nginx.conf.sample

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ location /static/ {
108108
expires +1y;
109109

110110
if (!-f $request_filename) {
111-
rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last;
111+
rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
112112
}
113113
}
114114
location ~* \.(zip|gz|gzip|bz2|csv|xml)$ {
@@ -117,11 +117,11 @@ location /static/ {
117117
expires off;
118118

119119
if (!-f $request_filename) {
120-
rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last;
120+
rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
121121
}
122122
}
123123
if (!-f $request_filename) {
124-
rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last;
124+
rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
125125
}
126126
add_header X-Frame-Options "SAMEORIGIN";
127127
}

0 commit comments

Comments
 (0)