improve seo tagging, update nginx config file
This commit is contained in:
@@ -14,11 +14,17 @@ server {
|
||||
expires max;
|
||||
break;
|
||||
}
|
||||
#location /ssd {
|
||||
# rewrite ^/ssd(.*)$ $1;
|
||||
#}
|
||||
location /data {
|
||||
valid_referers none __hostname__;
|
||||
# if you want to block hotlinking
|
||||
# valid_referers none __hostname__ ~\.google\. ~\.bing\. ~\.yahoo\.;
|
||||
if ($invalid_referer) {
|
||||
return 403;
|
||||
}
|
||||
rewrite ^/data/sample/--.+?--(.+) /data/sample/$1 last;
|
||||
rewrite ^/data/--.+?--(.+) /data/$1 last;
|
||||
expires max;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user