'NGINX include JSON file at both locations

I have the following nginx code which I would like to have JSON files passing through both locations. Having the following code, JSON files passes only via the second location. What is needed in order to have both locations "enabled" for JSON. I want to make sure that the first location contains the /new URI (+several other sub-URIs).

location /new/ {
    proxy_http_version     1.1;
    proxy_pass http://new_upstream;
    }


location ~* \.(?:jpg|jpeg|json|fs)$ {
    proxy_pass http://upstream;
    }


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source