zoukankan      html  css  js  c++  java
  • Nginx 配置 HTTPS SSL 代理

    配置文件如下:

    #user  nobody;
    worker_processes  1;
      
    events {
        worker_connections  1024;
    }
    
    
    http {
        include       mime.types;
        default_type  application/octet-stream;
     
        sendfile        on; 
        keepalive_timeout  65;
     
        upstream tomcats{ 
         server www.ironfo.com:443; 
        }
     
        server {
            listen       80;
            server_name  localhost;
     
            location / { 
                proxy_pass https://tomcats;
                index  index.html index.htm;
            }
      
            error_page   500 502 503 504  /50x.html;
            location = /50x.html {
                root   html;
            } 
        } 
    }
    [root@localhost sbin]# ./nginx -V
    nginx version: nginx/1.12.2
    built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) 
    built with OpenSSL 1.0.2k-fips  26 Jan 2017
    TLS SNI support enabled
    configure arguments: --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-stream --with-stream_ssl_preread_module --with-stream_ssl_module
    [root@localhost sbin]# 
  • 相关阅读:
    Delphi 学习笔记
    Extjs 4
    面向对象(OOP)
    Java基础
    Ubantu(乌班图)
    CentOS 6.3操作常识
    英语音标单元音篇
    英语音标双元音篇
    英语音标辅音篇
    Oracle补习班第一天
  • 原文地址:https://www.cnblogs.com/vipsoft/p/11530838.html
Copyright © 2011-2022 走看看