how do you assign a SSL in Apache OpenSSL?

Discussion in 'Server Operation' started by wintertong, Jul 22, 2009.

  1. wintertong

    wintertong New Member

    Hi,

    I am running apache 2.2 and I have a SSL certificate that I bought through Enom.

    I have the apache entry setup in the httpd-vhost.conf file as per below:

    <VirtualHost 77.92.70.252:80>
    ServerAdmin [email protected]
    DocumentRoot /opt/lampp/htdocs/pineapple
    ServerName www.pineappleshoes.com
    ServerAlias pineappleshoes.com
    ErrorLog /var/log/pineapple-error_log
    CustomLog /var/log/pineapple-access_log common
    </VirtualHost>

    Just in case you want to see that the site exists you will need to change your host file as the domain name is not pointing at the server yet.

    I have done some reading and thought that this would work by inserting this into the httpd-ssl.conf file.

    <VirtualHost 77.92.70.252:443>
    ServerAdmin [email protected]
    DocumentRoot /opt/lampp/htdocs/pineapple
    ServerName www.pineappleshoes.com
    ServerAlias pineappleshoes.com
    ErrorLog /var/log/pineapple-error_log
    CustomLog /var/log/pineapple-access_log common
    SSLEngine on
    SSLCertificateFile /opt/lampp/etc/ssl.crt/pineappleshoes.crt
    SSLCertificateKeyFile /opt/lampp/etc/ssl.key/pineappleshoes.key
    </VirtualHost>

    However this does not work and apache will not restart.

    Can anyone help me?

    Regards Gareth
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Any errors in Apache's error log?
    Did you configure Apache to listen on port 443?
     

Share This Page