Removing blank location block causes 404 errors

Francis Daly francis at
Thu Mar 20 20:24:30 UTC 2014

On Thu, Mar 20, 2014 at 04:10:29PM -0400, drhowarddrfine at wrote:

Hi there,

> location ~* 
> ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|eot|mp4|ogg|ogv|webm|pdf)$ 
> {
> }
> Today, I deleted that block and now the images, css and javascript files 
> are all returned a 404. I don't understand what's going on.
> I'm using version 1.5.11

What request do you make?

What response do you want to get? ("The contents of *this* file.")

Which location in your new config file is used to process that request?

What config is in that location?

Francis Daly        francis at

More information about the nginx mailing list