Periodically nginx gives 404 error?

0 like 0 dislike
5 views
The site works normal, sometimes podlagivaet.


When adding reviews, news can give out nginx 404 error. The second time everything runs smoothly. 502 error did not occur.


On the website 1,000 people.


What could it be? In what direction to dig? "To many connections" mysql does not issue.
by | 5 views

4 Answers

0 like 0 dislike
I can assume that the error reply line
\r
location ~ * ^.+.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ {
root /var/test.lan/;
\r

\r
If possible, it is necessary to include in nginx e error logging and see if any URLs 404 is thrown and not whether the listed URLs above regex.
by
0 like 0 dislike
The 404 is thrown because the test.lan:8080 for some reason does not give the answer. Dig to the side of the timeout and/or use FastCGI for reverse proxy is not good.
by
0 like 0 dislike
all hat is necessary:
\r
\rlocation / { root /var/www/site.EN; index index.php index.htm index.html; if (!-e $request_filename ) { rewrite ^(.*)$ /index.php?q=$1; } }
by
0 like 0 dislike
Tom, don't tell me - you isolated the problem?
Faced with exactly the same behavior of nginx. Where to dig I do not know. Google clear answers does not. The only associated link from its issuance is a link to the page..
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 9, 2019 by Quad_Tree
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,698 users