Nginx提示502错误,如何解决?
Nginx提示502错误,如何解决?
报502错误,查看错误日志:
网上查了这个错误:https://blog.csdn.net/yyj108317/article/details/109484923
按教程改了nginx配置,但是还是不行,还是一样的错误日志。 求大神解答一下,感谢!
admin 已回答
解决办法:
在M2的vhost
里,找到location ~ (index|get|static|report|404|503|health_check
这一行,在里面添加:
fastcgi_buffers 1024 4k; fastcgi_buffer_size 128k;
类似这样
# PHP entry point for main application location ~ (index|get|static|report|404|503|health_check|test|dafo_importer|_intellij_phpdebug_validator)\.php$ { .... fastcgi_buffers 1024 4k; fastcgi_buffer_size 128k; .... }
admin 编辑回答