I am currently working on a new project where the entire page should be implemented in HTML5/JS working against an API/JSON. Since the entire application should only consist of
Nginx http server can do this like:
location /{ # serve a file }
or you can customize your links like
location /my_html{ # serve html file } location /cdn/{ # serve rest files }
you can even check urls by regexps
location ~ /cdn/.*\.js${ # serve cdn }