Posts

Showing posts with the label SSL

Apache24 SSL(HTTPS) Basic Configuration and Force HTTPS connections

step 1. Edit config file '/usr/local/etc/apache24/httpd.conf' remove the # sign before these lines. #LoadModule socache_shmcb_module libexec/apache24/mod_socache_shmcb.so #LoadModule ssl_module libexec/apache24/mod_ssl.so #Include etc/apache24/extra/httpd-ssl.conf In Apache2.2 [mod_socache_shmcb] is uncommented in httpd.conf by default.From Apache 2.4 [mod_socache_shmcb] is commented step 2. edit /usr/local/etc/apache24/extra/httpd-ssl.conf file. Modify these lines and configure the appropriate settings. ServerName www.example.com:443 [optional] ServerAdmin you@example.com [optional] SSLCertificateFile "/usr/local/etc/apache24/server.crt" SSLCertificateKeyFile "/usr/local/etc/apache24/server.key" >>> ServerName domain_or_ip:443 ServerAdmin master@mail_server SSLCertificateFile "path/fullchain.pem" SSLCertificateKeyFile "path/privkey.pem" step 3. Force HTTPS connections 3 solutions. Redirect Request to SSL. Usi...