繁体   English   中英

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

[英]500 internal server error when using reverse-proxy

我在Ubuntu 14.04 server上安装了apache2。 在80端口中,Apache在port 9000 nodeJs端口中运行,而port 9000 nodeJs应用程序则永远运行。 因此,我在apache2配置文件中的80端口虚拟主机上添加了以下几行,以使用反向代理在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运行良好。 这是什么错误呢?

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

mod_proxy和mode_proxy_http都可以。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM