600535c4f36021946.jpg_fo742.jpg

upstream wordpress_server {
        server 10.0.0.1:443;
        keepalive 3600;
}
proxy_cache_path /tmp/nginx_cache levels=1:2 keys_zone=static_cache:100m;

server {
        location ~ \.(css|js|jpg|png|gif|ico)$ {
                proxy_cache static_cache;
                proxy_pass https://wordpress_server;
        }



        location / {
                proxy_pass https://wordpress_server;
                access_log /data/www_access.log;
                error_log /data/www_error.log;
        }

}

可以用nginx转发TCP,减少https的2.5个握手周期

发表评论

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

Captcha Code