Home  >  Article  >  Backend Development  >  nginx gets 502 every post request

nginx gets 502 every post request

WBOY
WBOYOriginal
2016-09-30 09:37:322586browse

The environment is lnmp

The problem is that nginx has been reversed and pointed to a nodejs project. Every time I submit a post, the form will get 502, and if I refresh it, it will be normal. What the hell

Reply content:

The environment is lnmp

The problem is that nginx has been reversed and pointed to a nodejs project. Every time I submit a post, the form will get 502, and if I refresh it, it will be normal. What the hell

I found the reason. When pm2 started, it watched the entire directory. As a result, the file was changed and it restarted, and then it got 502. . . It took me a long time to find the nginx configuration

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn