title: How can I have same rule for two locations in NGINX config?
body: <p>How can I have same rule for two locations in NGINX config?</p>
  
  <p>I have tried the following</p>
  
  <pre><code>server {
    location /first/location/ | /second/location/ {
    ..
    ..
    }
  }
  </code></pre>
  
  <p>but nginx reload threw this error:</p>
  
  <pre><code>nginx: [emerg] invalid number of arguments in "location" directive**
  </code></pre>