SSL不适用于Apache

我试图在我的VPS上安装SSL证书。 我生成了CSR,并获得证书和中级CA. 我正在ubuntu服务器13.10上的Apache 2上工作。 所以我使用默认的SSL虚拟主机sites-available并根据证书供应商公司指令configuration了default-ssl 。 这是我做的,

 <IfModule mod_ssl.c> <VirtualHost *:443> ServerAdmin webmaster@localhost ServerName www.buysellswapit.com DocumentRoot /sites/bswapit <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /sites/bswapit> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined SSLEngine on SSLCertificateFile /var/ssl/www_buysellswapit_com.crt SSLCertificateKeyFile /var/ssl/www_buysellswapit_com.key SSLCertificateChainFile /var/ssl/www_buysellswapit_com_im.crt <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> BrowserMatch "MSIE [2-6]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 # MSIE 7 and newer should be able to use keepalive BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown </VirtualHost> </IfModule> 

然后重新加载Apache,什么都没有发生。 然后我想通过apache检查configuration加载,它是apache2.conf ,虽然我没有做任何改变apache2.conf 。 然后我检查port.conf ,并让它听取443端口! 重新加载Apache,并为了安全,重新启动它。 再一样! SSL不起作用!

这里是port.conf文件,

 NameVirtualHost *:80 Listen 80 <IfModule mod_ssl.c> Listen 443 </IfModule> <IfModule mod_gnutls.c> Listen 443 </IfModule> 

现在,我做错了什么?

启用ssl模块

a2enmod ssl

然后启用ssl虚拟主机

a2ensite default-ssl

或者

cd /etc/apache2/sites-enabled && ln -s ../sites-available/default-ssl

和:

service apache2 restart