WeareJH / wf2

PHP environments for Magento 1, Magento 2 & Wordpress
6 stars 3 forks source link

Nginx configuration #58

Open dcabrejas opened 4 years ago

dcabrejas commented 4 years ago

Setting up a project I came across an issue where pages where returning 502 status codes. After debugging the issue I found this to be the solution to the problem: https://ma.ttias.be/nginx-proxy-upstream-sent-big-header-reading-response-header-upstream/

This needs to be added to the nginx configuration files.

shakyShane commented 4 years ago

@dcabrejas does this still need adding? if so can you PR it so I don't get it wrong.

BTW, if you want to test nginx changes on a real project, just edit the nginx file in place and then run

wf2 dc exec nginx nginx -s reload
dcabrejas commented 4 years ago

I am not sure, I think it still needs adding althought I haven't had this problem for a long time.

Thanks for the tip 😃