title: nginx port forwarding to port 80 from a running meteor app at port 3001
body: <p>I'm running an meteor app at port 3001 on my VPS, and would like to forward it to port 80. This is my vhost config:</p>
  
  <pre><code>server
      {
              listen 80;
              server_name meteor.myDomain.com;
              root  /home/wwwroot/meteor.myDomain.com/leaderboard;
              include typecho.conf;
              location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
                      {
                              expires      30d;
                      }
  
              location ~ .*\.(js|css)?$
                      {
                              expires      12h;
                      }
  
              location /example {
                 proxy_pass http://127.0.0.1:3001;
                 proxy_set_header Host $host:80;
                 proxy_set_header X-Real-IP $remote_addr;
                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                 proxy_set_header X-NginX-Proxy true;
             }
              access_log off;
      }
  </code></pre>
  
  <p>When i type "meteor.myDomain.com/example" in the browser i get this:
  <img src="https://i.stack.imgur.com/qffud.jpg" alt="enter image description here">
  <img src="https://i.stack.imgur.com/i8s1u.jpg" alt="enter image description here"></p>
  
  <p>It looks like my port forwarding is successful, but i want to know why i get 404 with the request to the css and js files? And this two files reside in /example/programs/client.
  <br><br>
  When i type "meteor.myDomain.com/example:3001", everything works fine, so i think there must be something run with my config. Can anyone help? Thanks in advance.</p>