502 Bad Gateway, in Response to SVN COPY with SSL off-loading

When accessing SVN over HTTPS, HTTPS can be terminated on Apache web server or it can be off-loaded to different software like Reverse Proxy. Problem is that HTTP-COPY request’s URI is changed to HTTP, but the “Destination:” header’s URI starts with HTTPS. When web server finds URI scheme of source and destination different, it throws an error 502 (Bad Gateway).

Installing HAProxy on pfSense

HAProxy and pfSense are both wonderful solutions on their own. This post explains three solutions to integrate them. These solutions range from a typical testing scenarios to a more maintainable, secure, full featured, flexible and viable solution for critical production environments.