首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >求救!apache多IP配置一个WordPress和一个网盘?

求救!apache多IP配置一个WordPress和一个网盘?

提问于 2019-02-07 19:16:01
回答 0关注 0查看 277

我一台服务器(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启动时就报端口堵塞

这要怎么解决,谢谢各位大神

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档