0

I have requests to

/usr/share/nginx/www404

in my NGINX logs. Note that www and 404 are mashed together. The according line in my nginx.conf is

error_page 404 /404.html;

and there's a 404.html in my web root folder, sure. Clean config files here (btw why is it so hard to put code into a question here?):

My question: Why are there requests to this weird "location" and what's wrong with my 404 error config ?

Sliq
  • 142
  • 1
  • 8
  • Could you insert the entire nginx conf ? In what block error_page statement is included ? – DrGkill Feb 14 '14 at 15:44
  • Thanks, i've added ``nginx.conf` and the according `wordpress` setup from sites-available (as a gist). – Sliq Feb 14 '14 at 15:59

1 Answers1

1

Here we are :

In your PHP block you have this statement :

try_files $uri = 404;

Add this line in your PHP block:

fastcgi_intercept_errors on;

and change your error_page statement to :

error_page 404 = /404.html;
DrGkill
  • 936
  • 6
  • 7