0

I have nginx setup with one nginx server and cluster of four php-fpm instances running on back end on different machines.I have custom pages for 500,502,504 errors which works fine. What happens some times suddenly I got 50X custom error page and when I do subsequent refresh for same URL it servers URL without any error.

I wants to know/log reasons for the same behavior of Nginx.

Any help or suggestion would be greatly appreciated.

Thanks

  • You should have access and error logs somewhere. – Alexey Ten Mar 11 '15 at 9:25
  • I have disabled nginx access log and error log both. I wants only to log 50x errors not notice/warnings. please suggest. – coder Mar 11 '15 at 9:37
  • Suggest: enable error and access log. Latest access log has option to write logs only for some conditions. See if=condition modifier. error log has several levels of verbosity. Level error should be good enough – Alexey Ten Mar 11 '15 at 10:17
  • Hi Alex, Is there any option if I got any 50x error then refresh the same page without showing any custom page because what happens sometimes my site all of sudden gives 50x for any url and on subsequent refresh url works properly which means the error is not persistent and comes occasionally. – coder Mar 16 '15 at 11:57
  • Response with html that will refresh page – Alexey Ten Mar 16 '15 at 13:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.