nginx 443 https mark

#user  nobody;
worker_processes  4;
#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;
#pid        logs/nginx.pid;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    log_format  main  'remoteaddrremote_user [timelocal]"request" '
                      'statusbody_bytes_sent "$http_referer" '
                      '"httpuseragent""http_x_forwarded_for"';
    #access_log  logs/access.log  main;
    sendfile        on;
    #tcp_nopush     on;
    #keepalive_timeout  0;
    keepalive_timeout  65;
    #gzip  on;
upstream weixin {
        server 192.168.1.18:8903 max_fails=3 fail_timeout=30s;
}
server {
    listen 443;
    server_name weixin.efunbox.cn;
    ssl on;
    root html;
    index index.html index.htm;
    ssl_certificate   /usr/local/nginx-1.10.2/cert/214068604010664.pem;
    ssl_certificate_key  /usr/local/nginx-1.10.2/cert/214068604010664.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;
access_log /data/logs/nginx/weixinapp.log main;
    location / {
proxy_pass http://weixin;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
#proxy_set_header host $host;
proxy_set_header X-forwarded-for $proxy_add_x_forwarded_for;
proxy_set_header X-real-ip  $remote_addr;
    }
}
include vhosts/*.conf;
}
posted @   托马斯布莱克  阅读(635)  评论(0编辑  收藏  举报
(评论功能已被禁用)
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
历史上的今天:
2016-03-27 mysql主从复制 详解
2016-03-27 高性能Mysql主从架构的复制原理及配置详解
2016-03-27 mysql5.5 对触发器,函数,存储引擎,事件进行主从复制情况.(转)
2016-03-27 idea unknow facet type web 解决方案
点击右上角即可分享
微信分享提示