【发布时间】:2014-06-09 15:45:08
【问题描述】:
我在 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>
非常感谢您提出如何解决此问题的建议。
【问题讨论】:
-
如果您解决了这个问题,请回复。我有同样的问题。谢谢!
标签: apache ubuntu proxy ghost-blog