1 頁 (共 1 頁)

[CentOS]於Apache上安裝SSL

發表於 : 2015年 5月 5日, 15:06
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