nginx
nginx
nginx 做域名绑定
nginx 配置ssl https请求
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name *.rizon.top;
ssl on;
root html;
index index.html index.htm;
ssl_certificate /etc/nginx/cert/certificate.pem;
ssl_certificate_key /etc/nginx/cert/certificate.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
location / {
root /home/website;
index index.html index.htm;
}
}nginx 配置301跳转
使用nginx stream
要注意不要放到http块中,因为这个不是http转发而是tcp层的转发
stream模块使用yum安装的高版本nginx是有的,编译安装的默认可能没有
Last updated