我正在尝试为我的 apache 服务器设置一个 digicert ssl 通配符证书。我对某事有点困惑。到目前为止,我有以下配置:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName x.y.com
ServerAlias x.y.com
DocumentRoot /webapps/x/public
<Directory /webapps/x/public>
Options -MultiViews
Order deny,allow
Allow from all
</Directory>
ErrorLog /var/log/apache2/y.com_error.log
LogLevel warn
CustomLog /var/log/apache2/y.com_access.log combined
ServerSignature On
</VirtualHost>
NameVirtualHost *:443
<VirtualHost *:443>
ServerName x.y.com
ServerAlias x.y.com
DocumentRoot /webapps/x/public
<Directory /webapps/x/public>
Options -MultiViews
Order deny,allow
Allow from all
</Directory>
ErrorLog /var/log/apache2/y.com_error.log
LogLevel warn
CustomLog /var/log/apache2/y.com_access.log combined
ServerSignature On
SSLEngine on
SSLCertificateFile /etc/certificates/www_y_com.crt
SSLCertificateKeyFile /etc/certificates/www_y_com.key
SSLCertificateChainFile /etc/certificates/DigiCertCA.crt
RailsEnv myenv
</VirtualHost>
但我得到:
NameVirtualHost *:80 has no VirtualHosts (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 没有可用的监听套接字,正在关闭
我应该如何配置它以使其工作?
非常感谢!