Autentificare






 
Cos
Produs Perioada
Nici un produs selectat
 

SSL HOW TO :: APACHE MULTI DOMAIN SSL CERTIFICATES INSTALATION

Installing SSL Certificates for multiple domains hosting on Apache with modSSL

Apache server support the following virtual hosting on modSSL:

IP mode SSL virtual hosting
On IP mode, you will need to setup, first, aliasing on the WAN network card for the new IP address.
port mode SSL virtual hosting
The PORT mode is not very popular, because sometimes the full server setup can be dificult.
The main advantage for this implementation came from single IP address usage.

In order to setup your server and install the certificates, you will need to log in to your server on root account, because you must to be able to make changes to Apache's configuration files, and restart the Apache server process.
Following guidelines are for Apache 2.x.

  1. Copy the certificates files to your server, into a directory where you plan to keep your certificates.
    For this example we will use /etc/httpd/ssl/server0 and /etc/httpd/ssl/server1.

  2. You will now need to open in edit mode the Apache configuration file responsible for SSL settings. The location of this file can vary depending on your Apache's distribution.

  3. Make sure the files can be accessed by Apache. You can run chmod 644 -R /etc/httpd/ssl

  4. Locate VirtualHost section and edit:
    For IP mode SSL virtual hosting:
    <VirtualHost xxx.xxx.xxx.xxx:* >
    SSLEngine on
    DocumentRoot "path to server's 0 files"
    ServerName myDomainName0
    SSLCertificateKeyFile /etc/httpd/ssl/server0/myserver0.key
    SSLCertificateFile /etc/httpd/ssl/server0/myDomainName0.crt
    SSLCertificateChainFile /etc/httpd/ssl/server0/myDomainName0.ca-bundle
    ... other settings
    </VirtualHost>

    <VirtualHost yyy.yyy.yyy.yyy:* >
    SSLEngine on
    DocumentRoot "path to server's 1 files"
    ServerName myDomainName1
    SSLCertificateKeyFile /etc/httpd/ssl/server1/myserver1.key
    SSLCertificateFile /etc/httpd/ssl/server1/myDomainName1.crt
    SSLCertificateChainFile /etc/httpd/ssl/server1/myDomainName1.ca-bundle
    ... other settings
    </VirtualHost>

    For PORT mode SSL virtual hosting:

    Listen 443
    Listen 444

    <VirtualHost xxx.xxx.xxx.xxx:443 >
    SSLEngine on
    DocumentRoot "path to server's 0 files"
    ServerName myDomainName0
    SSLCertificateKeyFile /etc/httpd/ssl/server0/myserver0.key
    SSLCertificateFile /etc/httpd/ssl/server0/myDomainName0.crt
    SSLCertificateChainFile /etc/httpd/ssl/server0/myDomainName0.ca-bundle
    ... other settings
    </VirtualHost>

    <VirtualHost xxx.xxx.xxx.xxx:444 >
    SSLEngine on
    DocumentRoot "path to server's 1 files"
    ServerName myDomainName1
    SSLCertificateKeyFile /etc/httpd/ssl/server1/myserver1.key
    SSLCertificateFile /etc/httpd/ssl/server1/myDomainName1.crt
    SSLCertificateChainFile /etc/httpd/ssl/server1/myDomainName1.ca-bundle
    ... other settings
    </VirtualHost>

  5. Save the changes to the file. Now you will need to restart Apache. Some Apache implementations need to 'stop' then 'start'.

  6. If your server SSL keys was password protected, the Apache prompt you to input the passwords.

  7. Test your instalation.

Need direct support? contact us.