Chinaunix首页 | 论坛 | 博客
  • 博客访问: 458003
  • 博文数量: 145
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1139
  • 用 户 组: 普通用户
  • 注册时间: 2014-01-14 16:47
个人简介

路漫漫其修远兮,吾将上下而求索

文章分类

全部博文(145)

文章存档

2016年(10)

2015年(15)

2014年(120)

我的朋友

分类: 系统运维

2016-10-23 16:15:26


点击(此处)折叠或打开

  1. server
  2.     {
  3.       listen 80;
  4.       listen 443;
  5.       server_name platform.13322.com pay.13322.com;
  6.       ssl on;
  7.       ssl_certificate /usr/local/nginx/html/ssl/platform_13322_com.crt;
  8.       ssl_certificate_key /usr/local/nginx/html/ssl/platform_13322_com_private.key;
  9.       #https配置
  10.       if ($server_port = 80) {
  11.             return 301 https://$server_name$request_uri;
  12.       }
  13.       if ($scheme = http) {
  14.             return 301 https://$server_name$request_uri;
  15.       }
  16.       error_page 497 https://$server_name$request_uri;
  17.       #http配置
  18.       if ($scheme = http) {
  19.             return 301 https://$server_name$request_uri;
  20.       }


阅读(1165) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~