I recently switched over an Nginx server so that it was being accessed via an HAproxy tcp connection that was now sending proxy protocol information. When I did this I started to get PR_END_OF_FILE_ERROR issues from my browser. While it seems simple, the fix is to ensure that your nginx listener has the proxy_protocol configuration set.
![](https://blog.lottabytes.com/wp-content/uploads/2022/01/Screenshot-from-2022-01-07-15-32-33.png)
For reference, below is my HAproxy backend configuration.
![](https://blog.lottabytes.com/wp-content/uploads/2022/01/Screenshot-from-2022-01-07-15-36-20.png)