How to define location to math all .php files with authentication?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

Please, how can I define a location to math all .php files ?

Actually, I’m using the following configuration:

As you can see, I had to define (line 42) a location ~.php$ { … }
inside (line 39) location ~* /test { … } with authentication. It
worked for me, but, this is the best way ?

Thank you guys!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyXyiYACgkQNRQApncg295WYgCdF7aDie4su51bPWIqHtbfErsX
GrkAmwcTzbMtOF/Qt1RUpZQKuR9LJIKE
=0Y+a
-----END PGP SIGNATURE-----