Search Results

Search found 2 results on 1 pages for 'jmetz'.

Page 1/1 | 1 

  • 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?

    Read the article

  • Nginx and Django on Dotcloud

    - by jmetz
    I currently have a dotcloud app that uses django to serve everything. It works great, however, we recently had our site redone in angular.js, and I don't want to use django to serve the actual html pages (I want to just use nginx for that), but I want django to serve some links for the API we built for the angular code to use. Is it possible for me, in the same app, to configure nginx to serve some static files for particular urls, and have it send other urls for django to serve? I want nginx to serve my index.html page is a request comes in to wwww.example.com, but if a request for example.com/api/login/ comes in, I want that to be handled by django. Is this possible?

    Read the article

1