- 輸入網址:OOO.net
3. 選擇手動模式
4. 將檔案下載並放置網站更目錄,點選驗證的URL確認讀取的到。
5. 下載取得相關的SSL檔案
-
安裝Apache SSL模組yum install mod_ssl
-
修改Apache設定
Vim
/etc/httpd/conf/httpd.conf
紅色為新增置Apache
Server的設定,完成後請重啟服務。
NameVirtualHost
*:443
<VirtualHost
*:80>
DocumentRoot
/var/www/html/XXX/
ServerName
hrm.tibtrade.net
ErrorLog
logs/dummy-XXX.net-error_log
CustomLog
logs/dummy-XXX.net-access_log common
RewriteEngine
on
RewriteCond
%{SERVER_PORT} !^443$
RewriteRule
^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
</VirtualHost>
<VirtualHost
*:443>
DocumentRoot
"/var/www/html/XXX"
ServerName
hrm.tibtrade.net
SSLEngine
on
SSLCertificateFile
/etc/httpd/ssl/xxx.crt
SSLCertificateKeyFile
/etc/httpd/ssl/xxx.key
SSLCACertificateFile
/etc/httpd/ssl/ca-xxx.crt
</VirtualHost>
沒有留言:
張貼留言