[英]How to configure standalone Jetty 9 as a reverse proxy to a node app?
We are using standalone Jetty 9 to serve some webapps that are deployed as war files. 我们正在使用独立的Jetty 9来提供一些作为war文件部署的Web应用程序。 The thing is that we just released a NodeJs webapp that uses Express and listens on localhost:3000, and we would like our jetty server to act as a reverse proxy to the node app so that we can associate it to a domain.
事实是,我们刚刚发布了一个使用Express并在localhost:3000上侦听的NodeJs Web应用程序,并且我们希望我们的码头服务器充当该节点应用程序的反向代理,以便我们可以将其关联到域。 I have not been able to find any examples about how to achieve this.
我尚未找到有关如何实现此目标的任何示例。 Jetty is the only server we have on the machine (we are not using Apache, Nginx or anything else in front) so we are wondering if we can use it to pass requests to the Node app apart from serving the java webapps.
Jetty是我们机器上唯一的服务器(我们没有使用Apache,Nginx或前面的其他工具),因此我们想知道是否可以使用它来将请求传递给Node应用程序,而不是为Java webapps服务。 Please remember we are using the STANDALONE version of Jetty.
请记住,我们正在使用STANDALONE版本的Jetty。
您想要为您的特定配置设置org.eclipse.jetty.proxy.ProxyServlet
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.