Node.js 使用nginx在digitalocean中使用同一域的多个meteor应用程序?

Node.js 使用nginx在digitalocean中使用同一域的多个meteor应用程序?,node.js,meteor,nginx,digital-ocean,Node.js,Meteor,Nginx,Digital Ocean,我正试图使用nginx在digitalocean的同一个微滴中托管2个应用程序 但到目前为止,我只能运行根应用程序(没有example.com/secondapp的应用程序) 我不想使用子域,只想使用example.com/secondmeteorapp访问它 我的站点已启用/默认值如下所示: server { listen 80; #listen 443 ssl; server_name example.com/; #ssl_certificat

我正试图使用nginx在digitalocean的同一个微滴中托管2个应用程序

但到目前为止,我只能运行根应用程序(没有example.com/secondapp的应用程序)

我不想使用子域,只想使用
example.com/secondmeteorapp
访问它

我的
站点已启用/默认值
如下所示:

server {
        listen 80;
        #listen 443 ssl;
    server_name example.com/;
    #ssl_certificate /etc/nginx/ssl/ssl-bundle-myApp-domain-com.crt;
    #ssl_certificate_key /etc/nginx/ssl/myApp_domain_com.key;

    location /dragonfire {
        proxy_pass http://localhost:4000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;

        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forward-Proto http;
        proxy_set_header X-Nginx-Proxy true;

        proxy_redirect off;

    }
    location /images {
            alias /home/dragonfire-build/bundle/programs/web.browser/assets/images;
            access_log off;
            expires max;
    }

    location /fonts {
        alias /home/dragonfire-build/bundle/programs/web.browser/assets/images;
        access_log off;
        expires max;
    }

    location "^/[a-z0-9]{40}\.(css|js)$" {
        root /home/dragonfire-build/bundle/programs/web.browser;
        access_log off;
        expires max;
    }

}
但是,当我访问
http://serverIpAddress/dragonfire
它找不到给我这个错误的css或javascript:
GEThttp://myipaddress/1f3848edee9e199050b9b1965b9e697aa714b9f3.css?meteor_css_resource=true

GEThttp://myipaddress/6e48198c6b584ff79c86e0c624a65b4853faaf50.js?meteor_js_resource=true 404(未找到)

如果我直接通过IP地址和端口,而不是通过nginx方式,我可以访问应用程序

问题

如何使用相同的域访问第二个应用程序,但最后使用
/mysecondap
(在本例中为
/dragonfire