0

我在 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>

非常感谢您提供如何解决此问题的建议。

4

2 回答 2

1

尝试使用

<VirtualHost *:80>
    ServerName blog.example.com

    ProxyPreserveHost on

    ProxyPass / http://myVPS_IP:2368/ Keepalive=On

</VirtualHost>
于 2014-06-26T00:13:56.797 回答
0

您是否在 Ghost 的 config.js 中更新了您的 url 配置?确保它是这样设置的:

url: 'http://blog.example.com',
于 2014-06-10T00:56:28.883 回答