Each nginx request is handled by one and only one location. Since these requests match the location you've put, that's where they're handled.
You'll need to set up two locations, once for that specific URI, and one for the others.
See http://nginx.org/en/docs/http/ngx_http_core_module.html#location.
You'll need to set up two locations, once for that specific URI, and one for the others.
See http://nginx.org/en/docs/http/ngx_http_core_module.html#location.