Skip to content

Commit 9f3ab3a

Browse files
authored
Remove recursion in location of static files.
1 parent c644b3d commit 9f3ab3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nginx.conf.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ location /static/ {
105105
# expires max;
106106

107107
# Remove signature of the static files that is used to overcome the browser cache
108-
location ~ ^/static/version {
109-
rewrite ^/static/(version\d*/)?(.*)$ /static/$2 last;
108+
location ~ ^/static/version\d*/ {
109+
rewrite ^/static/version\d*/(.*)$ /static/$1 last;
110110
}
111111

112112
location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|html|json)$ {

0 commit comments

Comments
 (0)