I’m also trying to figure out how to do this with Apache. I have found this HAProxy article about the PROXY Protocol and have found that there’s a version 1 and version 2 of the protocol. You’re implementing v1 with “send-proxy”, but to implement the v2 option you would change that to “send-proxy-v2” in HAProxy.
I’m also using HAProxy with “mode tcp” and have been able to get this working with Nginx, but not Apache yet. To make this work you will have to make configure changes to both HAProxy & Apache config. All I have found for Apache, is this link about the mod_remoteip module which I’m trying to figure out now. Please share if you find anything to configure the Apache side of this.
Then I copied my /etc/apache2/sites-available/server-ssl.conf to /etc/apache2/sites-available/server-8443.conf because the next step would take 443 offline which isn’t useful during setup. In the new site I changed to read
Listen 0.0.0.0:8443
<VirtualHost *:8443>
...
...
RemoteIPProxyProtocol On
...
I’m having trouble getting this to work. I’m not using Debian, and am using RockyLinux. After following everything here, I’m now getting the PR_END_OF_FILE_ERROR, so does anyone have any suggestions? Please help!
The “PR_END_OF_FILE_ERROR” typically indicates an SSL/TLS handshake failure, which can be related to proxy issues. Ensure your proxy settings are correctly configured and that the proxy server supports the required SSL/TLS protocols. Clear your browser’s cache and SSL state, and verify that the system date and time are accurate. If you’re using a proxy, try bypassing it or reconfiguring it. Additionally, check for any recent changes or updates to your proxy or network configuration that might be affecting the connection.
If you are still facing the issue i will refer this article to resolve.