<button id="qvlbh"><button id="qvlbh"></button></button>
<xmp id="qvlbh"><xmp id="qvlbh"><xmp id="qvlbh"><address id="qvlbh"><output id="qvlbh"></output></address>
<xmp id="qvlbh"><legend id="qvlbh"></legend>
<xmp id="qvlbh"> <address id="qvlbh"><output id="qvlbh"></output></address>
<address id="qvlbh"><button id="qvlbh"></button></address>
<button id="qvlbh"><samp id="qvlbh"></samp></button>
<address id="qvlbh"><button id="qvlbh"></button></address><address id="qvlbh"></address>
<address id="qvlbh"><legend id="qvlbh"></legend></address>
<samp id="qvlbh"><xmp id="qvlbh"><legend id="qvlbh"></legend>
中國站
幫助中心 > 安全 > SSL安全證書(shū) > 證書(shū)安裝 > Nginx 自動(dòng)跳轉到HTTPS

Nginx 自動(dòng)跳轉到HTTPS

適用于 80端口和443 配置在同一個(gè) server{}內

  1. if ($server_port = 80) {
  2. rewrite ^(.*)$ https://$host$1 permanent;
  3. }

配置示例:

  1. server {
  2. listen 80;
  3. server_name www.22.cn;
  4. rewrite ^ https://$http_host$request_uri? permanent;
  5. }
  6. server {
  7. listen 443;
  8. ssl on;
  9. ssl_certificate /etc/ssl/cacert.pem;
  10. ssl_certificate_key /etc/ssl/privkey.pem;
  11. server_name www.22.cn;
  12. server_tokens off;
  13. location / {
  14. fastcgi_param HTTPS on;
  15. fastcgi_param HTTP_SCHEME https;
  16. }
  17. }
国产精品香港三级|日韩精品无码免费专区网站|熟女一区二区三区|一本伊大人香蕉久久网|jzzijzzij亚洲乱熟无码
<button id="qvlbh"><button id="qvlbh"></button></button>
<xmp id="qvlbh"><xmp id="qvlbh"><xmp id="qvlbh"><address id="qvlbh"><output id="qvlbh"></output></address>
<xmp id="qvlbh"><legend id="qvlbh"></legend>
<xmp id="qvlbh"> <address id="qvlbh"><output id="qvlbh"></output></address>
<address id="qvlbh"><button id="qvlbh"></button></address>
<button id="qvlbh"><samp id="qvlbh"></samp></button>
<address id="qvlbh"><button id="qvlbh"></button></address><address id="qvlbh"></address>
<address id="qvlbh"><legend id="qvlbh"></legend></address>
<samp id="qvlbh"><xmp id="qvlbh"><legend id="qvlbh"></legend>