{"id":57,"date":"2022-01-07T22:37:22","date_gmt":"2022-01-07T22:37:22","guid":{"rendered":"https:\/\/blog.lottabytes.com\/?p=57"},"modified":"2022-01-08T00:51:47","modified_gmt":"2022-01-08T00:51:47","slug":"nginx-and-reverse-proxy","status":"publish","type":"post","link":"https:\/\/blog.lottabytes.com\/index.php\/2022\/01\/07\/nginx-and-reverse-proxy\/","title":{"rendered":"Nginx and HAproxy &#8211; PR_END_OF_FILE_ERROR"},"content":{"rendered":"\n<p>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 <em>PR_END_OF_FILE_ERROR <\/em>issues from my browser.  While it seems simple, the fix is to ensure that your nginx listener has the <em>proxy_protocol<\/em> configuration set.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"110\" src=\"https:\/\/blog.lottabytes.com\/wp-content\/uploads\/2022\/01\/Screenshot-from-2022-01-07-15-32-33.png\" alt=\"\" class=\"wp-image-58\" srcset=\"https:\/\/blog.lottabytes.com\/wp-content\/uploads\/2022\/01\/Screenshot-from-2022-01-07-15-32-33.png 496w, https:\/\/blog.lottabytes.com\/wp-content\/uploads\/2022\/01\/Screenshot-from-2022-01-07-15-32-33-300x67.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<p>For reference, below is my HAproxy backend configuration.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"769\" height=\"241\" src=\"https:\/\/blog.lottabytes.com\/wp-content\/uploads\/2022\/01\/Screenshot-from-2022-01-07-15-36-20.png\" alt=\"\" class=\"wp-image-59\" srcset=\"https:\/\/blog.lottabytes.com\/wp-content\/uploads\/2022\/01\/Screenshot-from-2022-01-07-15-36-20.png 769w, https:\/\/blog.lottabytes.com\/wp-content\/uploads\/2022\/01\/Screenshot-from-2022-01-07-15-36-20-300x94.png 300w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.lottabytes.com\/index.php\/2022\/01\/07\/nginx-and-reverse-proxy\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;Nginx and HAproxy &#8211; PR_END_OF_FILE_ERROR&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12,9,14,13,15,16],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-haproxy","tag-nextcloud","tag-pr_end_of_file_error","tag-proxy","tag-reverse-proxy","tag-ssl"],"_links":{"self":[{"href":"https:\/\/blog.lottabytes.com\/index.php\/wp-json\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lottabytes.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lottabytes.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lottabytes.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lottabytes.com\/index.php\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":2,"href":"https:\/\/blog.lottabytes.com\/index.php\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/blog.lottabytes.com\/index.php\/wp-json\/wp\/v2\/posts\/57\/revisions\/62"}],"wp:attachment":[{"href":"https:\/\/blog.lottabytes.com\/index.php\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lottabytes.com\/index.php\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lottabytes.com\/index.php\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}