Home > Apache, SSL > Apache SNI

Step 1. vim /etc/httpd/conf/httpd.conf

NameVirtualHost *:443
Include /etc/httpd/conf/extra/httpd-vhosts.conf

Step 2.  vim /etc/httpd/conf/extra/httpd-vhosts.conf

<VirtualHost *:443>
    DocumentRoot "/var/www/vhosts/my-helper.com/htdocs"
    ServerName my-helper.com
    ServerAlias www.my-helper.com
    <Directory "/var/www/vhosts/my-helper.com/htdocs">
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog "/var/www/vhosts/my-helper.com/logs/ssl_error_log"
    TransferLog "/var/www/vhosts/my-helper.com/logs/ssl_access_log"
    SSLEngine on
    SSLCertificateFile /etc/pki/tls/certs/my-helper.com/my-helper.com.crt
    SSLCertificateKeyFile /etc/pki/tls/certs/my-helper.com/ca.key
    SSLCertificateChainFile /etc/pki/tls/certs/my-helper.com/gd_bundle.crt
</VirtualHost>



Flag Counter