Blocking externally linked images with Mongrel proxy setup

Dan Webb dan at
Tue Sep 11 14:57:45 MSD 2007

> - location ~* \.(gif/jpg/png/swf/flv)$ {
> + location ~* \.(gif|jpg|png|swf|flv)$ {

Sorry, yes, that was a typo in my example.  The location like in my
config file is as you've written.  It's still giving me 404s on all my
images though.

I've also tried

location ~^ /images { }

as well and get the same 404s for everything in that directory.

Any other suggestions?

Dan Webb

Event Wax (

More information about the nginx mailing list