2.修改apache/conf 下httpd.conf檔案內容
#loadmodule ssl_module modules/mod_ssl.so 和 #include conf/extra/httpd-ssl.conf,去掉前面的#號注釋;
cd /www/wdlinux/apache/conf/
操作 i 去掉 #loadmodule ssl_module modules/mod_ssl.so 和 #include conf/extra/httpd-ssl.conf,去掉前面的#號注釋;
操作 esc
shift+z+z 儲存並退出
4.編輯apache根目錄下 conf/extra/httpd-ssl.conf 檔案
5.重啟apache
service httpd restart
6.執行https下出現it works!
開始專案目錄這裡我採用的apache/conf 下httpd.conf內的documentroot值一樣,執行結果是it works! 把專案目錄改為自己專案**所在位置即可 我這裡是 /www/web/kczs/public_html 然後重啟啊apache執行正常
**優惠券領取:
windows nginx配置https訪問
本文主要記錄在windows下安裝nginx 環境 win10 64位。進入window的cmd視窗,輸入如下圖所示的命令,進入到nginx目錄 d nginx 1.8.1 使用 start nginx.exe 進行nginx的安裝,如下圖所示 安裝成功後,在 任務管理器 中會看到 nginx.ex...
windows nginx配置https訪問
本文主要記錄在windows下安裝nginx 環境 win10 64位。進入window的cmd視窗,輸入如下圖所示的命令,進入到nginx目錄 d nginx 1.8.1 使用 start nginx.exe 進行nginx的安裝,如下圖所示 安裝成功後,在 任務管理器 中會看到 nginx.ex...
前端使用Nuxt框架,配置本地https訪問
因部分api需要https才能實現,所以需要配置本地開發環境的https訪問 1 生成本地使用的https證書 2 在nuxt.config.js中引入證書 npm install g mkcert2 建立證書頒發機構 mkcert create ca建立成功後如圖所示 3 建立證書 mkcert ...