这个简单的SSL Vhost声明有什么问题?

时间:2015-01-13 13:05:26

标签: apache ssl ubuntu-14.04 vhosts

中间vhost设置导致Apache问题的原因是什么?也许是因为我没有那里的SSL细节?

<VirtualHost *:80>
  ServerName www.windfarmstudios.com
  ServerAlias windfarmstudios.com
  Redirect permanent / https://windfarmstudios.com
</VirtualHost>

#<VirtualHost *:443>
#  ServerName www.windfarmstudios.com
#  Redirect permanent / https://windfarmstudios.com
#</VirtualHost>

<VirtualHost *:443>
  ServerName windfarmstudios.com
  DocumentRoot /var/www/windfarmstudios.com/public_html

  SSLEngine on
  SSLCertificateFile /etc/apache2/ssl/windfarm.crt
  SSLCertificateKeyFile /etc/apache2/ssl/windfarm.key
  SSLCACertificateFile /etc/apache2/ssl/windfarm.ca-bundle
</VirtualHost>

0 个答案:

没有答案