Welcome! Log In Create A New Profile

Advanced

Removing blank location block causes 404 errors

March 20, 2014 04:12PM
I'm new to nginx and had this in my conf file which I had copied some
time ago but never filled it in and continued building a test page with
images, css and javascript:

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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Removing blank location block causes 404 errors

drhowarddrfine March 20, 2014 04:12PM

Re: Removing blank location block causes 404 errors

Francis Daly March 20, 2014 04:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 137
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready