Enabling SSL on apache instance on EC2

前端 未结 6 1971
南旧
南旧 2020-12-29 03:32

I have an EC2 instance that is using Amazon\'s custom linux install with built in apache. This install also has openssl installed. That being said, there does not appear t

6条回答
  •  暖寄归人
    2020-12-29 04:08

    A summary of what needs to be done to enable SSL on apache server on EC2:

    1. Get SSL certificate (which you already did)
    2. Install mod_ssl as Jose Vega said
    3. Add the following lines to your httpd.conf 3.
    NameVirtualHost *:443
    
    
        ServerName www.example.com
    #    other configurations
    SSLEngine on
    SSLCertificateFile /etc/httpd/conf/ssl.crt/mydomain.crt
    SSLCertificateKeyFile /etc/httpd/conf/ssl.key/mydomain.key
    
    

    Finally, don't forget to open port 443 on your EC2 instance

提交回复
热议问题