我在 Ubuntu 14.04 LTS 上使用 Apache 2.4.7 作为代理在子域 ( http://blog.example.com )上安装了 Ghost 。
该博客在子域上可用,但是当我尝试使用http://blog.example.com/ghost/editor/访问后端时,我收到 502 代理错误:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /ghost/editor/.
Reason: Error reading from remote server
Apache/2.4.7 (Ubuntu) Server at blog.example.com Port 80
我的 Apache 虚拟主机配置如下所示:
<VirtualHost *:80>
ServerName blog.example.com
ProxyPreserveHost on
ProxyPass / http://myVPS_IP:2368/
</VirtualHost>
非常感谢您提供如何解决此问题的建议。