欢迎登陆真网站,您的到来是我们的荣幸。 登陆 注册 忘记密码? ☆设为首页 △加入收藏
欢迎加入真幸福QQ群
电脑知识: 基础知识 网络技术 操作系统 办公软件 电脑维修 电脑安全 windows7 windows8 windows10 服务器教程 平板电脑 视频播放教程 网络应用 互联网 工具软件 浏览器教程 QQ技巧 输入法教程 影视制作 YY教程 wps教程 word教程 Excel教程 PowerPoint
云南西双版纳特产小花糯玉米真空包装


linux下Mysql的启动关闭的命令
如何解决linux下dpkg: error processing install-info
Win10斯巴达浏览器集成的微软小娜使用方法
SAI绘画软件自定义笔刷与材质
怎样在酷我k歌中搜歌?
short_open_tag 必须打开
在Linux上如何使用fuser工具来查询文件的用户
os x10.10.3公测版下载地址 yosemite10.10.3公测版下载
win10 10022新变化 win10预览版10022更新内容
sai绘画软件怎么用?
Nginx下proxy_set_header 模块代码
【 来源:网络 】【 点击:1 】 【 发布时间:2017_03_03 08:59:59 】

 下文给各位重点介绍Nginx下proxy_set_header 模块代码,脚面要了解的朋友不防进入看看吧.

 
 

前言:由于新注册的腾讯企业邮箱已经无法绑定域名(之前绑定的依然可以使用),因此采用nginx模块来强制转向!

代码:

    server {
listen       80;
server_name  mail.t4x.org;
rewrite ^/(.*)$ https://mail.t4x.org/$1 permanent;
location / {
    root   /site/t4x.org/mail;
    index  index.html index.htm;
}
error_page   500 502 503 504  /50x.html;
location = /50x.html {
    root   /site/t4x.org/mail;
}
}

server {
listen       443 ssl spdy;
server_name  mail.t4x.org;
ssl on;
ssl_certificate mail.t4x.org_bundle.crt;
ssl_certificate_key mail.t4x.org.key;
ssl_session_cache    shared:SSL:1m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
location /
{
proxy_set_header Accept-Encoding xxxx;
proxy_set_header Host mail.t4x.org;
proxy_pass https://exmail.qq.com;
sub_filter http://mail.t4x https://www.111cn.net;
sub_filter_once off;
}
}

备注:需要--with-http_sub_module模块支持!

本网站由川南居提供技术支持,fkzxf版权所有 浙ICP备12031891号
淳安分站 淳安分站