军哥lnmp1.5图片防盗链这样写可以不?

server
{
add_header Strict-Transport-Security "max-age=一五五五二000; includeSubdomains; preload";
listen 四四三 ssl;   
server_name www.hostingfool.com;     
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/www.hostingfool.com;           
ssl_certificate /usr/local/nginx/conf/一_www.hostingfool.com_bundle.crt;  
ssl_certificate_key /usr/local/nginx/conf/二_www.hostingfool.com.key;   
ssl_ciphers "EECDH+CHACHA二0:EECDH+CHACHA二0-draft:EECDH+AES一二八:RSA+AES一二八:EECDH+AES二五六:RSA+AES二五六:EECDH+三DES:RSA+三DES:!MD五";
ssl_protocols TLSv一 TLSv一.一 TLSv一.二;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:一0m;

error_page 四0四 /四0四.html;
location ~ [^/]\.php(/|$)
{
# co妹妹ent try_files $uri =四0四; to enable pathinfo
try_files $uri =四0四;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;  

#include pathinfo.conf;
}

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires      三0d;
valid_referers none blocked  *.四六六五九.com;
if ($invalid_referer) {

return 五00;
}
}
location ~ .*\.(js|css)?$
   {
    expires      一二h;
   }
  location ~ /.well-known {
            allow all;
        }

        location ~ /\.
        {
            deny all;
        }
       access_log  /home/wwwlogs/zhu/xxx.com.log;
    }
server {
listen 四四三;
server_name  xxx.com ;
return 三0一 https://www.hostingfool.com$request_uri;
}《兰州网友》:能够

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注