Serving a file with nginx
- by jmetz
I have a webapp built in angular.js and angular. Since angular takes care of most urls by itself, i want to serve the file indexAng.html (along with any arguments) in response to a request for /search/?arg1=x&arg2=y
I've tried to do this with location blocks like this:
location /search/ {
alias /home/dotcloud/current/static/public/;
index indexAng.html;
}
This seems to work, but i don't know how to serve the arguments with it. How do I serve arguments with indexAng.html, and is there a better or more appropriate way to go about this?