<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ~~~ # 這個服務器是http://www.itbooking.net的服務 server { ? ?listen 80; ? ?server_name www.itbooking.net; #需要將yourdomain.com替換成證書綁定的域名。 ? ?rewrite ^(.*)$ https://$host$1; #將所有HTTP請求通過rewrite指令重定向到HTTPS。 ? ?location / { ? ? ? ?index index.html index.htm; ? } } ? ? # 這個服務器是https://www.itbooking.net的服務 server { ? ?listen 443 ssl; ? ?#配置HTTPS的默認訪問端口為443。 ? ?#如果未在此處配置HTTPS的默認訪問端口,可能會造成Nginx無法啟動。 ? ?#如果您使用Nginx 1.15.0及以上版本,請使用listen 443 ssl代替listen 443和ssl on。 ? ?server_name www.itbooking.net; #需要將yourdomain.com替換成證書綁定的域名。 ? ?root html; ? ?index index.html index.htm; ? ?ssl_certificate cert/6179501_www.itbooking.net.pem; ?#需要將cert-file-name.pem替換成已上傳的證書文件的名稱。 ? ?ssl_certificate_key cert/6179501_www.itbooking.net.key; #需要將cert-file-name.key替換成已上傳的證書密鑰文件的名稱。 ? ?ssl_session_timeout 5m; ? ?ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ? ?#表示使用的加密套件的類型。 ? ?ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #表示使用的TLS協議的類型。 ? ?ssl_prefer_server_ciphers on; ? ?location / { ? ? ? ?root html; ?#站點目錄。 ? ? ? ?index index.html index.htm; ? } } ~~~ 校驗配置是否有誤如下: ~~~ [root@iZuf62zev3la2ivndnxra5Z servers]# nginx -t nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful ~~~ 然后重啟nginx服務 ~~~ nginx -s reload ~~~ 然后訪問服務器 ~~~ https://www.itbooking.net/ ~~~ ![](https://img.kancloud.cn/47/0c/470c315f00828544526f8db685fc73f9_1910x624.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看