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

Flavio Torres fla_torres at yahoo.com.br
Tue Sep 21 00:55:05 MSD 2010


-----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:
http://pastebin.com/RMWWGD4a

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-----





More information about the nginx mailing list