I set up an Apache + SSL environment, so here are the steps for reference.
Reading the article below should be sufficient:
・[Think IT] 第7回:Apache+SSL環境を構築しよう! (1/3)
Here are the steps:
First, uncomment the line to load the SSL configuration file httpd-ssl.conf.
# vi /usr/local/apache2/conf/httpd.conf
Include conf/extra/httpd-ssl.conf
Next, edit httpd-ssl.conf.
# vi /usr/local/apache2/conf/extra/httpd-ssl.conf
In VirtualHost, change the global IP, DocumentRoot, ServerName, and ServerAdmin as appropriate.
Also, change the SSLCertificateFile and SSLCertificateKeyFile sections to the certificate path and private key path respectively.
DocumentRoot "/usr/local/apache2/htdocs"
ServerName example.com:443
ServerAdmin [email protected]
SSLCertificateFile "/usr/local/apache2/conf/server.crt"
SSLCertificateKeyFile "/usr/local/apache2/conf/server.key"
Finally, once the changes are complete, restart Apache.
# service httpd configtest
# service httpd restart
That’s all from the Gemba.