Apache Name Virtual Host with SSL

后端 未结 7 626
暖寄归人
暖寄归人 2020-12-24 05:34

I am attempting to setup our servers to allow traffic over SSL. I am aware that SSL does not work with Name Virtual Host, but we have all of our apache servers on virtual m

7条回答
  •  有刺的猬
    2020-12-24 06:20

    The VirtualHost would look like this:

    NameVirtualHost IP_Address:443
    
    
        SSLEngine on
        SSLCertificateFile /etc/pki/tls/certs/ca.crt    # Where "ca" is the name of the Certificate
        SSLCertificateKeyFile /etc/pki/tls/private/ca.key
        ServerAdmin webmaster@domain_name.com
        DocumentRoot /var/www/html
        ServerName www.domain_name.com
        ErrorLog logs/www.domain_name.com-error_log
        CustomLog logs/www.domain_name.com-access_log common
    
    

提交回复
热议问题