开发者

apache SSLEngine On, in separate Vhost, or mix with :80?

I'm unsure if I should create a separate Vhost in apache for HTTPS purposes. I need to pass the "SSLEngine" option and I'm wondering if that would hurt performance on normal http-requests? Does it matter if I use SSLEngine On inside a *:80 Vhost, like so:

<VirtualHost *:80 *:443>
    DocumentRoot /var/www/html/
    ServerName *.domain.com

    SSLEngine On
    SSLCertificateFile /current-certificate
    SSLCertificateKeyFile /current-key
&l开发者_如何转开发t;/VirtualHost>


With that block you are running SSL on 80 and 443, prob not what you want. You need a separate vhost entry. One for regular http and the other for SSL.

And yes it would degrade performance. But check out SSL persistent connections. Most of the SSL overhead is from the handshake not the actual transfer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜