I am playing with nodejs/expressjs/angularjs with MondgoDB on Ubuntu 12.04. I was going through this example. When I tested this locally, deleting a wine worked just fine. But after deploying to Ubuntu 12.04 box, DELETE request failed. I am using nginx as proxy and running nodejs on port 3000.
I tried to stop nginx and running it directly on nodejs on different port. It didn't help; proves me that this problem has nothing to do with nginx.
But using curl I was able to delete an item. e.g. curl -i -X DELETE http://localhost:3000/wines/5069b47aa892630aae000007.
So am I missing something in middle-tier(expressjs)? Here is my sandbox.