Nginx响应80和443端口的访问配置
Posted 9uhome
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx响应80和443端口的访问配置相关的知识,希望对你有一定的参考价值。
server
listen 80;
server_name www.test.com;
rewrite ^(.*)$ https://$host$1 permanent;
server
listen 443;
server_name www.test.com;
ssl on;
ssl_certificate /nginx/cert/scs1665496843144_www.test.com_server.crt;
ssl_certificate_key /nginx/cert/scs1654683262336144_www.test.com_server.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
......
以上是关于Nginx响应80和443端口的访问配置的主要内容,如果未能解决你的问题,请参考以下文章