【发布时间】:2022-01-06 12:09:38
【问题描述】:
我已经在 apache 中配置 https-vhosts.conf 文件指向非标准端口
ProxyRequests Off
ProxyPreserveHost On
Listen 8081
<VirtualHost *:8081>
RequestHeader set X-Forwarded-Proto "https" ####this is needed for our app
ServerName test.apa.com
ProxyPass / http://10.1.1.5:8443
ProxyPassReverse / http://10.1.1.5:8443
SSLEngine on
SSLCertificateFile /etc/ssl/certs/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key
</VirtualHost>
但是,当我尝试在 chrome: https://test.apa.com:8081 中访问 url 时,出现以下错误:
另外,地址栏中的 url 显示为 http://test.apa.com:8081.However,当我将 http 更改为 https 并尝试访问时...它工作正常,浏览器显示 https://test.apa.com:8081。
请指点一下虚拟主机的配置有什么问题?
【问题讨论】:
-
请don't upload text as image。编辑您的问题以包含文本形式的所有信息。此外,显示的错误消息与您的问题描述非常匹配。确保浏览器的自动完成功能没有更正协议。
标签: apache virtualhost