我一台服务器(win server 2012)里面安装了xamapp,我想让两个都有https
我新建了一个名为vhosts-ssl.conf的文件,文件内容是
Listen 132.232.146.236:443
Listen 132.232.211.136:443
<VirtualHost 132.232.146.236:443>
DocumentRoot "C:/xampp/htdocs/ybnet"
ServerName www.ybrjgzs.xyz:443
ServerAlias www.ybrjgzs.xyz:443
SSLEngine on
SSLProtocol TLSv1 TLSv1.1 TLSv1.2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile "C:\xampp\apache\conf\ssl.csr\server.csr"
SSLCertificateKeyFile "C:\xampp\apache\conf\ssl.key\server.key"
SSLCertificateChainFile "C:\xampp\apache\conf\ssl.crt\server.crt"
<Directory "C:/xampp/htdocs/ybnet">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost 132.232.211.136:443>
DocumentRoot "C:/xampp/htdocs/pan"
ServerName pan.ybrjgzs.xyz:443
ServerAlias pan.ybrjgzs.xyz:443
SSLEngine on
SSLProtocol TLSv1 TLSv1.1 TLSv1.2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile "C:\xampp\apache\conf\ssl.csr\server1.csr"
SSLCertificateKeyFile "C:\xampp\apache\conf\ssl.key\server1.key"
SSLCertificateChainFile "C:\xampp\apache\conf\ssl.crt\server1.crt"
<Directory "C:/xampp/htdocs/pan">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
我的主机有两个网卡,主网卡和辅网卡
每个都有一个弹性ip
然后我把httpd.conf内的Include conf/extra/httpd-ssl.conf改为了Include conf/extra/vhosts-ssl.conf
但当我改完后,apache启动时就报端口堵塞
这要怎么解决,谢谢各位大神
相似问题