Nginx depth - https optimization

1: Activate keepalive long link

2: Set the SSL Session Cache

 

Server 
 { 
   the listen        443 ; 
   server_name   116.62 . 103.228 jeson.t.imooc.io; 
 
   keepalive_timeout 100 ;    

   SSL ON; 
   ssl_session_cache Shared: the SSL: 10m; # 10MB buffer is about 8k-1W session session 
   ssl_session_timeout 10m; # 10 minutes expired 

   #ssl_certificate / etc / Nginx / ssl_key / jesonc.crt; 
   ssl_certificate / etc / Nginx / ssl_key / jesonc_apple.crt; 
   ssl_certificate_key / etc / Nginx / ssl_key / jesonc.key; 
   #ssl_certificate_key / etc / Nginx / ssl_key / jesonc_nopass.key;

   index index.html index.htm;
   location / {
       root  /opt/app/code;
   }
}
 

 

Guess you like

Origin www.cnblogs.com/eason-d/p/11227705.html