来源: 最后更新:22-12-10 06:06:26
下文给各位重点介绍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;
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模块支持!
美军攻击舰,进入地中海!(美军地中海舰队)美军攻击舰,进入地中海!,海军,黎以,美军,真主党,地中海,黎巴嫩,攻
宫崎骏简介(宫崎骏简介及作品) 管姚:美国“创纪录”的总统竞选电视辩论,只留下一地鸡毛 苏联首都是哪个城市(苏联首都叫什么名字) 2024台州市图书馆社会实践报名入口(2020浙江台州市图书馆招聘1人公告)