nginx gets 502 every post request

WBOY
Release: 2016-09-30 09:37:32
Original
2578 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template