title: nginx location regex
body: <p>I'm setting up nginx and I need to use the location directive to match all requests that begin with <code>/site1</code> AND end with <code>.php</code>. What regex do I use to do this?</p>
  
  <p>I know I can use ^ to match the beginning of the string and $ to match the end of string. So I'm able to match the beginning of the string OR the end of the string as <code>^(/site)|(\.php)$</code>. Is there any 'and' operator so I can write something like <code>^(/site)&amp;(\.php)$</code> ? </p>