简体   繁体   English

如何将独立Jetty 9配置为节点应用程序的反向代理?

[英]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.

相关问题 如何使用 node.js 为闪亮的应用程序做反向代理 - How to do a reverse proxy with node.js for a shiny app 如何在centos 6.4 virtualbox客户端上使用express设置和配置node.js到nginx反向代理? - How to set and configure node.js with express to nginx reverse proxy on centos 6.4 virtualbox client? 如何配置 --public-host 以在 nginx 反向代理后面运行 angular 通用应用程序? - How to configure the --public-host to run angular universal app behind nginx reverse proxy? 如何在 CentOS 上使用 Nginx 反向代理到域子文件夹中的 Node.js 应用程序? - How to reverse proxy to a Node.js app in a domain subfolder with Nginx on CentOS? 如何在Node.js Express上为gitlab配置反向代理规则 - How to configure reverse proxy rules for gitlab on nodejs express 如何将 Nginx 配置为反向代理来执行 this.network 模式? - How to configure Nginx as reverse proxy to do this network schema? Nginx反向代理服务Node.js应用程序静态文件 - Nginx reverse proxy Serving Node.js app static file 为 Node.js 应用程序配置 Nginx 反向代理 - Configuring Nginx Reverse Proxy for Node.js app 如何在代理后面配置node.js(express.js)应用程序? - How to configure node.js (express.js) app behind proxy? 当尝试连接到节点应用程序作为反向代理时,Nginx连接被拒绝 - Nginx connection refused, when trying to connect to node app as reverse proxy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM