0

アクセスを制限したいフォルダがありますが、先頭が同じ複数のファイルに全員がアクセスできるようにしたいのです。すでにブロックしていますが、許可ファイルを機能させることができないようです。これは私が持っているものです:

order deny,all
deny from all
allow from 127.0.0.1 
#There's several lines of real IPs here
<FilesMatch "^myfiles*\.php$">
  order Allow,Deny
  Allow from all
</FilesMatch>

順序が間違っていますか、それとも何か他のものですか?

4

1 に答える 1

1

正規表現は正しくないと思います。試してください:

<FilesMatch "myfiles.*?\.php$">
   Satisfy any  
   order Allow,Deny
   Allow from all
</FilesMatch>
于 2013-10-18T13:07:20.227 に答える