From b96fa923e19a1c6402170630951e53fcfd3df605 Mon Sep 17 00:00:00 2001 From: Carey Sizer <carey@balanceinternet.com.au> Date: Thu, 22 Dec 2016 11:17:01 +1300 Subject: [PATCH] Removed un-used static version rewrite rule in nginx.conf.sample The version / signature for the static file has already been removed by an earlier rule --- nginx.conf.sample | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nginx.conf.sample b/nginx.conf.sample index ec524374900..9f94f72e6c8 100644 --- a/nginx.conf.sample +++ b/nginx.conf.sample @@ -108,7 +108,7 @@ location /static/ { expires +1y; if (!-f $request_filename) { - rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; + rewrite ^/static/?(.*)$ /static.php?resource=$1 last; } } location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { @@ -117,11 +117,11 @@ location /static/ { expires off; if (!-f $request_filename) { - rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; + rewrite ^/static/?(.*)$ /static.php?resource=$1 last; } } if (!-f $request_filename) { - rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; + rewrite ^/static/?(.*)$ /static.php?resource=$1 last; } add_header X-Frame-Options "SAMEORIGIN"; } -- GitLab