title: Directive Inheritance in Nested Location Blocks
body: <p>are the following two nginx server blocks semantically the same, or is there any difference? Does the JSON-specific configuration in the first example inherit the settings of the "/" location? Does it in the second example?</p>
  
  <pre><code>server {
    location / {
       # ...
       location ~* \.json$ {
            # json-specific settings
       }
    }
  }
  
  server {
    location / {
       # ...
    }
    location ~*  \.json$ {
      # json-specific settings
    }
  }
  </code></pre>