从apache代理的nodejs:代理服务器收到来自上游服务器的无效响应

我有nodejs服务器和一些静态内容来服务。 我使用apache 2.4来达到这个目的,因为我需要在同一台机器上configuration多个主机。

我在我的apache 2.4中configuration了我的虚拟主机

<IfModule mod_ssl.c> <VirtualHost *:443> ServerAdmin [email protected] ServerName mydomain.co.in ServerAlias mydomain.co.in ProxyPass /api http://127.0.0.1:3001/api ProxyPassReverse /api http://127.0.0.1:3001/api DocumentRoot /root/VEFA-test-admin/vefa-admin/platforms/browser/www <Directory /root/VEFA-test-admin/vefa-admin/platforms/browser/www> Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLCertificateFile /etc/encrypt/live/mydomain.co.in/fullchain.pem SSLCertificateKeyFile /etc/encrypt/live/mydomain.co.in/privkey.pem </VirtualHost> </IfModule> 

而我的nodejs服务器在同一台机器上的portt 3001上运行。 问题是用户将访问我的网站使用mydomain.co.in得到看到的页面。 但在一种情况下,我将用户redirect到支付网关,支付网关在付款后将用户redirect到我的网站。 支付网关将用户redirect到我的网站时,会发生此问题。

Apache的错误日志说:

 [Thu Sep 07 12:08:06.291298 2017] [proxy_http:error] [pid 12226:tid 139763780601600] (20014)Internal error (specific information not available): [client 219.91.211.175:11159] AH01102: error reading status line from remote server 127.0.0.1:3001, referer: https://test.payumoney.com/payment/postBackParam.do [Thu Sep 07 12:08:06.291358 2017] [proxy:error] [pid 12226:tid 139763780601600] [client 219.91.211.175:11159] AH00898: Error reading from remote server returned by /api/u/payments/success, referer: https://test.payumoney.com/payment/postBackParam.do 

我在这里做什么错?

我已经尝试了下面提到的所有解决scheme

我试图使用Keepalive,ProxyBadHeader忽略,但没有任何帮助我。 有人能帮我吗?

被代理的应用程序不会说有效的HTTP。 无论是从nodejs进程返回的响应Apache所做的HTTP请求都不是HTTP。 我不知道要怎么解释