NO IMAGE
1 Star2 Stars3 Stars4 Stars5 Stars 給文章打分!
Loading...

預設掛載html目錄: /usr/share/nginx/html

預設conf掛載目錄: /etc/nginx/conf.d/  和
/etc/nginx/nginx.conf

docker run -d -p 443:443 -p 80:80 -v /usr/local/java/mynginx/conf:/etc/nginx/conf:ro -v /usr/local/java/mynginx/html:/usr/share/nginx/html:ro  nginx

nginx 配置 ssl:

server {       
  listen       443;
  server_name  dream96.top;
  ssl          on;
  root /usr/share/nginx/html;
  index index.html;
  
  ssl_certificate  conf.d/full_chain.pem;
  ssl_certificate_key  conf.d/private.key;
  ssl_session_timeout 5m;
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4: HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
  ssl_prefer_server_ciphers on;
}

相關文章

程式語言 最新文章