Skip to content
Snippets Groups Projects
Commit b96fa923 authored by Carey Sizer's avatar Carey Sizer
Browse files

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
parent 813fad85
Branches
No related merge requests found
......@@ -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";
}
......
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