rewrite help again please :)

Igor Sysoev is at rambler-co.ru
Thu May 14 09:13:36 MSD 2009


On Wed, May 13, 2009 at 11:18:39PM -0500, AMP Admin wrote:

> Oh and one more please!!!
> 
> DirectoryIndex index.php
> 
> <FilesMatch "\.(php|inc)$">
> Order allow,deny
> deny from all
> </FilesMatch>
> <FilesMatch "(index.php|dl.php|ut.php|lt.php|download.php)$">
> Order allow,deny
> allow from all
> </FilesMatch>

Probably you need just

  location ~ \.inc$ {
     deny all;
  }

because .php will be handled by fastcgi only.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list