If the search feature or another part of your Magento 2 store does not work and your server log contains the error upstream sent too big header while reading response header from upstream , try adding the following lines to your nginx directives:

Restart nginx afterwards. This may resolve the problem.

Fixing Nginx upstream sent too big header error
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: