使用反向代理时出现500内部服务器错误

时间:2014-09-18 04:04:52

标签: node.js apache proxy reverse-proxy

我的Ubuntu 14.04 server上安装了apache2。在port 9000 nodeJs应用程序中运行的端口80 apache正在永远运行。所以我添加到以下行到端口80虚拟主机 在apache2配置文件中使用反向代理在端口80中运行nodeapp。但现在当我使用端口80访问我的网站时,我得到了error of 500

    ProxyPreserveHost On
    ProxyRequests off
    ProxyPass / http://128.199.136.209:9000/
    ProxyPassReverse / http://128.199.136.209:9000/

该应用运行良好in port 9000。这有什么错误?

1 个答案:

答案 0 :(得分:1)

您是否启用了必要的Apache模块?

mod_proxy和mode_proxy_http。