[CentOS]於Apache上安裝SSL

有關於電腦系統設定, 備份, 監控, 網路等機制討論
回覆文章
頭像
tim
文章: 1380
註冊時間: 2008年 11月 26日, 00:49

[CentOS]於Apache上安裝SSL

文章 tim »

http://www.server-world.info/en/note?os ... =httpd&f=7

代碼: 選擇全部

 [root@www ~]# yum -y install mod_ssl
[root@www ~]# vi /etc/httpd/conf.d/ssl.conf
# line 59: uncomment

DocumentRoot "/var/www/html"
# line 60: uncomment and specify the server name

ServerName www.server.world:443
# line 100: change to the one created in [1]

SSLCertificateFile /etc/pki/tls/certs/server.crt
# line 107: change to the one created in [1]

SSLCertificateKeyFile /etc/pki/tls/certs/server.key
[root@www ~]# systemctl restart httpd 
多多留言, 整理文章, 把經驗累積下來.....
回覆文章