title: nginx: location tilde regex vs path
body: <p>What is the difference between these 2 nginx directives?  </p>
  
  <p><code>location ^~ /sub-directory</code>  </p>
  
  <p><code>location /sub-directory</code>  </p>
  
  <p>In the following code block, use <code>proxy_pass</code> to redirect, if that makes a difference.</p>