Nginx Meteor.js:是否可以更改URL中的基本路径?

Nginx Meteor.js:是否可以更改URL中的基本路径?,nginx,meteor,Nginx,Meteor,我想使用URL访问整个应用程序http://localhost:3000/theapp而不是http://localhost:3000/ 在使用meteor build构建的应用程序的html源代码中: <html> <head> <link rel="stylesheet" type="text/css" class="__meteor-css__" href="/8b140b84a4d3a2c1d8f5ea63435df8afc22985aa.css?met

我想使用URL
访问整个应用程序http://localhost:3000/theapp
而不是
http://localhost:3000/

在使用meteor build构建的应用程序的html源代码中:

<html>
<head>
  <link rel="stylesheet" type="text/css" class="__meteor-css__" href="/8b140b84a4d3a2c1d8f5ea63435df8afc22985aa.css?meteor_css_resource=true">
  <script src="/215e9bb1458d81c946c277ecc778bae4fc8eb569.js">
...
此要求的原因是,我正在尝试使用Nginx根据URL中的路径将请求转发到不同的meteor应用程序:

http://localhost/app1  ==> http://meteor-app1
http://localhost/app2  ==> http://meteor-app2
这可能吗

正如@d4nyll在评论中提到的,我需要执行服务器级路由而不是应用程序级路由。诸如Iron Router/Flow Router之类的解决方案将不起作用。

在这里找到了答案:

基本上只需要设置环境变量:ROOT_URL

http://localhost/app1  ==> http://meteor-app1
http://localhost/app2  ==> http://meteor-app2