![]() |
| home > Apache2 mod_ssl HTTP over SSL |
[root@ns1 ~]# yum -y install mod_ssl
[root@ns1 ~]# vi /etc/httpd/conf.d/ssl.conf#DocumentRoot "/var/www/html" ↓ DocumentRoot "/home/hoge/public_html" ←コメント解除&変更 #ServerName www.example.com:443 ↓ ServerName www.centos.orz:443 ←コメント解除&変更 SSLCertificateFile /etc/pki/tls/certs/localhost.crt ↓ SSLCertificateFile /etc/pki/tls/certs/server.pem ←変更 SSLCertificateKeyFile /etc/pki/tls/private/localhost.key ↓ SSLCertificateKeyFile /etc/pki/tls/certs/server.key ←変更
ヒント /etc/pki/tls/certsディレクトリに秘密鍵と証明書が無い場合はこちらを参照。
[root@ns1 ~]# /etc/rc.d/init.d/httpd restart
外部に公開する場合 プロトコル(TCP)ポート443番(HTTPS)を開放。
このページの記事内容に関して![]() |
![]() |
![]() |
Last updated 2008-08-01 |