I'm trying to pass off all calls to /api to my webservice but I keep getting 404s with the following config. Calls to / return index.html as expected. Does anyone know why?   upstream backend{server localhost:8080;} server {        location /api {        proxy_pass http://backend;        }        location / {        root /html/dir;        } }More info here:adept@HogWarts:/etc/nginx/sites-available$ curl -i localhost/api/authentication/check/user/emailHTTP/1.1 404 Not FoundServer: nginx/1.2.1Date: Mon, 22 Apr 2013 22:49:03 GMTContent-Length: 0Connection: keep-aliveadept@HogWarts:/etc/nginx/sites-available$ curl -i localhost:8080/authentication/check/user/emailHTTP/1.1 200 OKContent-Type: application/jsonDate: Mon, 22 Apr 2013 22:49:20 GMTTransfer-Encoding: chunked{user:[false],emailAddress:[false]}
Nginx proxy_pass 404 error, don't understand why
404;nginx