我目前在我的VPS上有一个运行在apache下的网站,但我计划用NodeJS运行另一个网站。
由于apache在端口80上运行,而NodeJS在端口3000上运行,我想知道如何管理当有人输入域名domain.com时,它会绑定到端口3000?
此外,有没有可能在浏览器上重定向后,它只显示http://domain.com而不显示http://domain.com:3000?
发布于 2014-03-31 21:03:33
使用ProxyPass:
<VirtualHost *:80>
ServerName domain.com
ProxyRequests Off
ProxyPass / http://domain.com:3000/
ProxyPassReverse / http://domain.com:3000/
</VirtualHost>https://stackoverflow.com/questions/22761779
复制相似问题