Tag: jetty

http-proxy-middleware:无法将localhost:9000redirect到本地主机:8888从nodejs到JettY

我有一个Node.js(AngularJS应用程序)应用程序,它托pipe在localhost:9000上。 另一部分(遗留的 – GWT superdev模式 – JeTTy)托pipe在localhost:8888。 我想configurationhttp-proxy-middleware,使得任何进入localhost:9000(NodeJS)的东西都应该被redirect到localhost:8888(JeTTy),并具有以下规范:(应用程序有3个端点): https:// localhost:9000 / product – > http://127.0.0.1:8888/product https:// localhost:9000 / servlets / my_servlet1 – > http://127.0.0.1:8888/servlets/my_servlet1 https:// localhost:9000 / admin – > http://127.0.0.1:8888/admin http-proxy-middleware设置如下: var proxy = proxyMiddleware(['/ product','/ admin','/ servlets'],{ 目标:“http://127.0.0.1:8888”, changeOrigin:true, xfwd:true }); var app = connect(); app.use(代理); 代理如下: ##节点脚本/ serve.js [HPM] Proxy created:['/ product,'/ […]