dlactrlw.exe是什么
2022-12-12
更新時(shí)間:2022-12-10 18:05:54作者:未知
下文給各位重點(diǎn)介紹Nginx下proxy_set_header 模塊代碼,腳面要了解的朋友不防進(jìn)入看看吧.
前言:由于新注冊(cè)的騰訊企業(yè)郵箱已經(jīng)無法綁定域名(之前綁定的依然可以使用),因此采用nginx模塊來強(qiáng)制轉(zhuǎn)向!
代碼:
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模塊支持!