在 apache2 上使用 https+port 配置多个虚拟主机

在 apache2 上使用 https+port 配置多个虚拟主机

这里目前正在运行具有多个虚拟主机的 apache2 服务器。两个域已经设置https://run.example.com并且运行良好并且进入https://dev.example.com:8005域,为什么?run.example.comERR_SSL_PROTOCOL_ERRORhttps://dev.example.com:8005

<VirtualHost  *:443>
        ServerName run.example.com

        ProxyPass        /      http://localhost:8001/
        ProxyPassReverse /      http://localhost:8001/
        ProxyPreserveHost On
SSLEngine On
SSLCertificateFile /etc/ssl/private/wildcard-example.pem
SSLCACertificateFile  /etc/ssl/private/ca-bundle.pem
SSLCertificateKeyFile /etc/ssl/private/wildcard-example.key

</VirtualHost>

<VirtualHost *:443>
        ServerName vm5.dev.example.com
        ServerAlias dev.example.com
        ProxyPass        /      http://localhost:8005/
        ProxyPassReverse /      http://localhost:8005/
SSLEngine On
SSLCertificateFile /etc/ssl/private/wildcard-example.pem
SSLCACertificateFile  /etc/ssl/private/ca-bundle.pem
SSLCertificateKeyFile /etc/ssl/private/wildcard-example.key

</VirtualHost>

相关内容