分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 代码编程

nginx ?https

发布时间:2023-09-06 01:35责任编辑:林大明关键词:nginxhttp
==================================

server{
listen ??????443;
server_name ?farm.gz.1252039095.clb.myqcloud.com;
ssl ?????????????????on;
ssl_certificate ?????/etc/pki/tls/certs/1_farm.gz.1252039095.clb.myqcloud.com_bundle.crt;
ssl_certificate_key ?/etc/pki/tls/certs/2_farm.gz.1252039095.clb.myqcloud.com.key;
ssl_session_timeout ?5m;
ssl_protocols ?SSLv3 TLSv1;
ssl_ciphers ?HIGH:!ADH:!EXPORT56:RC4+RSA:+MEDIUM;
ssl_prefer_server_ciphers ??on;
location ~ .php$ {
root ??????????/var/www/html;
fastcgi_pass ??127.0.0.1:9000;
fastcgi_index ?index.php;
fastcgi_param ?SCRIPT_FILENAME ?$document_root$fastcgi_script_name;
include ???????fastcgi_params;
}
location / {
root ??/var/www/html;
index ?index.php index.html index.htm ;
}

}

server
{
listen ?????????????????80;

server_name ????d1.farm.kuanggame.com;

 ???keepalive_timeout ??????300;

ssl ????????????????????on;
ssl_certificate ????????/etc/pki/tls/certs/1_d1.farm.kuanggame.com_bundle.crt;
ssl_certificate_key ????/etc/pki/tls/certs/2_d1.farm.kuanggame.com.key;
ssl_session_timeout ????5m;
ssl_session_cache ??????shared:SSL:50m;
ssl_protocols ??????????SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ????????????ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;

location /
{
proxy_pass ?????????????http://127.0.0.1:8080;
proxy_http_version ?????1.1;
proxy_read_timeout ?????300;
proxy_set_header ???????Upgrade $http_upgrade;
proxy_set_header ???????Connection "Upgrade";
proxy_set_header ???????X-Real-IP $remote_addr;
}
}

nginx ?https

原文地址:http://blog.51cto.com/2935559/2059135

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved