Magento 502 bad gateway nginx error (and how can you fix it)?

October 21, 2020
By Cozmot

Deprecated: pathinfo(): Passing null to parameter #1 ($path) of type string is deprecated in /var/www/html/wp-content/plugins/urvanov-syntax-highlighter/class-urvanov-syntax-highlighter-langs.php on line 86

I installed the magento2 when I am trying to open some pages facing 502 nginx issue,
in nginx logs it is showing
upstream sent too big header while reading response header from upstream,
then solved this issue by modifying this file
vi /usr/local/etc/nginx/nginx.conf
add this line of codes inside http{}


Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!