先谢谢你的帮助,
我想在具有大量VirtualHosts的服务器中通过httpd(RedHat)启动nodeJS应用程序,所以我去了位于/etc/httpd/conf/httpd.conf的httpd conf文件并最后添加该文件的配置如下:
<VirtualHost *:80>
ServerName subdomain.example.com
ProxyPreserveHost on
ProxyPass / http://localhost:8080/
</VirtualHost>
我的NodeJS应用程序在localhost:8080上运行,但是当我转到subdomain.example.com时,我只是收到了Server Not found错误。在我在互联网上找到的httpd配置文件中尝试了很多组合但是徒劳无功。每次通过运行service httpd restart
答案 0 :(得分:0)
这只是DNS传播问题。通过在DNS条目中添加A记录来修复。