我有一个服务器,该服务器的Web服务器运行在端口5000上。该Web服务器运行在https上。我想将此端口转发到端口80。我的apache配置如下:
<VirtualHost *:80>
ServerName MyServerHostName
ProxyPreserveHost On
ProxyRequests Off
SSLProxyEngine On
ProxyPass / https://localhost:5000/
ProxyPassReverse / https://localhost:5000/
SSLCertificateFile /foo/bar/cert.pem
SSLCertificateKeyFile /foo/bar/key.pem
</VirtualHost>
当在http:本地主机后面是localhost:5000时,此方法有效,当它是https站点时,我收到错误消息,连接不安全。那我应该改变什么?