win7 下apache開啟 https 訪問??

來源:互聯網
上載者:User

環境: window7 + apache2.4 + php7.0 + mysql5.7
本地如何配置 https://myweb.com 這樣的安全連結訪問??

我百度 | Google都搜過了,也嘗試著做過,這是我仿照的網址:http://blog.csdn.net/ybb35068...

產生了認證,將證 書放在了 apache根目錄下的 conf 檔案夾中(server.crt , server.key),設定檔中開啟 ssl_mod ,並開啟了 httpd-ssl.conf 。

在httpd-ssl.conf 中我是這樣配置的:

Listen 443 (將這個注釋掉了,不然會報錯:443連接埠已被使用,我是從這個網站中決定這樣做的:http://superuser.com/question...)

自己再添加了一個虛擬機器主機:

  ServerName ftl.com  DocumentRoot 'd:/web/frontToolLib' # 和 httpd-vhost.conf 中 ftl.com 的一致  SSLEngine on  SSLCertificateFile '${SRVROOT}/conf/server.crt'  SSLCertificateKeyFile '${SRVROOT}/conf/server.key'

然後配置 httpd-vhosts.conf 檔案

NameVirtualHost ftl.com:443  ServerName ftl.com  DocumentRoot 'd:/web/frontToolLib'  ...  ...

儲存,重啟 apache 後,能夠正常啟動。不過訪問的時候:

折騰死人了,能否就在這兒提供一個最新版的 windows 下 配置 apache 開啟 https 安全訪問的教程??

拜謝大神了!!

回複內容:

環境: window7 + apache2.4 + php7.0 + mysql5.7
本地如何配置 https://myweb.com 這樣的安全連結訪問??

我百度 | Google都搜過了,也嘗試著做過,這是我仿照的網址:http://blog.csdn.net/ybb35068...

產生了認證,將證 書放在了 apache根目錄下的 conf 檔案夾中(server.crt , server.key),設定檔中開啟 ssl_mod ,並開啟了 httpd-ssl.conf 。

在httpd-ssl.conf 中我是這樣配置的:

Listen 443 (將這個注釋掉了,不然會報錯:443連接埠已被使用,我是從這個網站中決定這樣做的:http://superuser.com/question...)

自己再添加了一個虛擬機器主機:

  ServerName ftl.com  DocumentRoot 'd:/web/frontToolLib' # 和 httpd-vhost.conf 中 ftl.com 的一致  SSLEngine on  SSLCertificateFile '${SRVROOT}/conf/server.crt'  SSLCertificateKeyFile '${SRVROOT}/conf/server.key'

然後配置 httpd-vhosts.conf 檔案

NameVirtualHost ftl.com:443  ServerName ftl.com  DocumentRoot 'd:/web/frontToolLib'  ...  ...

儲存,重啟 apache 後,能夠正常啟動。不過訪問的時候:

折騰死人了,能否就在這兒提供一個最新版的 windows 下 配置 apache 開啟 https 安全訪問的教程??

拜謝大神了!!

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.