Best way to only allow specific file extensions?
Cliff Wells
cliff at develix.com
Tue Mar 9 08:42:36 MSK 2010
On Mon, 2010-03-08 at 21:39 -0800, Cliff Wells wrote:
> Okay, so if I understand you, you want:
>
> 1) all requests for particular extensions and directories to be proxied
> to a backend
>
> 2) everything else to return 444
>
>
> location ~ (/?|\.html$|\.jpg|\.php|\.png|\.css|\.ico|\.js|\.swf|\.gif|robots\.txt)$ {
Oops, extra $ after .html
Cliff
More information about the nginx
mailing list