nginx https 配置

Jimmy Lee

技术分享|Feb 3, 2021|Last edited: 2022-7-23|
icon
Update time
Jul 23, 2022 10:04 AM
Internal status
password
 
server { listen 80; listen 443; ssl on; ssl_certificate conf.d/jimersylee.com.crt; ssl_certificate_key conf.d/jimersylee.com.key.pem; ssl_session_timeout 5m; ssl_protocols SSLv2 SSLv3 TLSv1; ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; ssl_prefer_server_ciphers on; root /etc/nginx/conf.d; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name *.jimersylee.com; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; } }
 
另外推荐,一个工具 https://www.digitalocean.com/community/tools/nginx 可视化配置nginx,方便新手了解nginx
 

开始订阅我的关于终生学习, 生产力以及知识管理的文章. 订阅后, 您将收到我的精选文章.

©2014-2024 Jimmy Lee. All rights reserved. 公众号: 技术管理方法论
Powered By My Lovely Children