Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Try adding
rewrite ^/app1/(.*)$ /$1 break;
under
location /app1/ {
and restarting nginx. Does that work?
root@test:/etc/nginx/sites-enabled# tail /var/log/nginx/ddApp.log 82.166.118.134 - - [21/Jul/2014:15:31:07 -0400] “GET /socket.io/socket.io.js HTTP/1.1” 404 208 “http://192.241.223.202/app1/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36” 82.166.118.134 - - [21/Jul/2014:15:31:07 -0400] “GET /app/77f2a613.vendor.js HTTP/1.1” 404 208 “http://192.241.223.202/app1/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36” 82.166.118.134 - - [21/Jul/2014:15:31:07 -0400] “GET /app/b7672478.app.js HTTP/1.1” 404 208 “http://192.241.223.202/app1/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36” 82.166.118.134 - - [21/Jul/2014:15:31:14 -0400] “GET /app1/ HTTP/1.1” 304 0 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36” 82.166.118.134 - - [21/Jul/2014:15:31:14 -0400] “GET /app/77f2a613.vendor.js HTTP/1.1” 404 208 “http://192.241.223.202/app1/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36” 82.166.118.134 - - [21/Jul/2014:15:31:14 -0400] “GET /socket.io/socket.io.js HTTP/1.1” 404 208 “http://192.241.223.202/app1/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36” 82.166.118.134 - - [21/Jul/2014:15:31:14 -0400] “GET /app/b7672478.app.js HTTP/1.1” 404 208 “http://192.241.223.202/app1/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36” 82.166.118.134 - - [21/Jul/2014:15:31:14 -0400] “GET /app/58c604fc.app.css HTTP/1.1” 404 208 “http://192.241.223.202/app1/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36” 82.166.118.134 - - [21/Jul/2014:15:31:14 -0400] “GET /app/088ba864.vendor.css HTTP/1.1” 404 208 “http://192.241.223.202/app1/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36” 82.166.118.134 - - [21/Jul/2014:15:31:30 -0400] “GET /app1/ HTTP/1.1” 304 0 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36” root@test:/etc/nginx/sites-enabled#
sorry … I’ve added morgan (I’m on Express 4) I only seem to get a Get / 304 with http://192.241.223.202/app1/ and then the broken app is displayed in the browser
Here is a session:
root@test:/var/log/upstart# service ddApp stop ddApp stop/waiting root@test:/var/log/upstart# service ddApp start ddApp start/running, process 7080 root@test:/var/log/upstart# tail ddApp.log -f league list GET /api/leagueList 304 160ms GET /api/leagueList 304 161ms GET / 304 157ms GET / 304 159ms GET / 304 164ms info - socket.io started loading league.controller Express server listening on 9000, in production mode db connection open GET / 304 181ms GET / 304 164ms <-- one of these for each refress of the browser at http://192…/app1