我正在运行 Parse Server,但由于某种原因,我无法从 HTTPS 访问服务器和仪表板,只能通过 HTTP 访问。
我想尝试设置 Apache 反向代理。具体来说,指向我的仪表板的 HTTP 地址是
http://www.example.com:4040
,但我想从 HTTPS 地址访问它,即https://www.example.com/0
.
我在我的网站 Apache 配置文件中试过这个,但运气不好:
<VirtualHost *:443>
DocumentRoot /var/www/html/example.com
ServerName example.com
SSLEngine on
SSLCertificateFile cer_file_path
SSLCertificateKeyFile key_file_path
SSLProxyEngine on
ProxyPreserveHost On
ProxyPass /0 http://www.example.com:4040
ProxyPassReverse /0 http://www.example.com:4040
</VirtualHost>
我应该在这里做什么?谢谢你的帮助