Apache2 Proxy Error:Error reading from remote server

Apache2 Proxy Error:Error reading from remote server

环境:

该站点本身现在并且一直运行良好,我已经向数据库中添加了很多条目,nanohttpd Web 服务器 returns 在某些端点上

我发现这与返回网站的长度有关,因为当我将条目从一种状态移动到另一种状态时,条目很多的总是会给我这个错误。

我已经四处看了看,认为这可能是超时问题,但我已经为我的虚拟主机添加了超时,但这个问题仍然存在

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /foo

Reason: Error reading from remote server

Apache/2.4.10 (Debian) Server at foo.foo.foo Port 443

我当前的 VirtualHost 文件:

<IfModule mod_ssl.c>
    <VirtualHost *:443>
            ServerAdmin webmaster@localhost
            DocumentRoot /var/www/directory

            ServerName foo.foo.foo
            ServerAlias foo.foo.foo

            ProxyPass "/" "http://foo.com:8080/"
            ProxyPassReverse "/" "http://foo.com:8080/"

            ErrorLog ${APACHE_LOG_DIR}/error.log
            CustomLog ${APACHE_LOG_DIR}/access.log combined

            Include /etc/path/options-ssl-apache.conf
            SSLCertificateFile /etc/path/foo.com-0001/fullchain.pem
            SSLCertificateKeyFile /etc/path/foo.com-0001/privkey.pem
    </VirtualHost>
</IfModule>

我之前尝试过在 ProxyPass 后面添加 timeout=x 和 connectiontimeout=x 但这似乎没有帮助

编辑: 由于这里仍然没有答案是更多信息,一旦符合条件,我将增加赏金。

如您在我的 VirtualHost 文件中所见,我正在使用 Apache 反向代理为我的应用程序启用 SSL

所以我的小 nanohttpd 服务器基本上 returns 一个非常简单的 html 页面,每个数据库条目有一个 table 和一行。如果特定类别的条目超过 100 个左右,我将收到代理错误消息。

在这一点上,我非常确定它与超时有关,但我浏览了很多帖子并尝试向我的配置添加配置并且(是的,我在每次更改后重新启动 Apache2)到目前为止没有任何效果。

会不会是我的 nanohttpd 服务器上缺少的东西? 一个简单的 Header 或 Cookie,我现在发送 none 个。

如果缺少任何必需的信息,请告诉我。

有趣的是,我想通了,现在我感觉很糟糕.. 我插入的 table 数据包含一个美元符号,显然我没有想到转义替换字符串

您输入的部分内容可能有误。