Hi, I've recently moved from Apache to stunnel to provide SSL for haproxy.
I have a need for the application behind haproxy to "know" if the connection has come in via HTTP or HTTPS. Previously, we have been injecting a custom header (X-SECURE-RPROXY or similar) in Apache if the connection is secure; this is then passed on. I'm using the patched stunnel; there are two obvious options (hardcode a new header in the patch, or use a different "frontend" in haproxy for stunnel connections) but neither of them appeal; is there a way to inject a header for a backend if the source is LOCALHOST (which seems to me the neater option)? Cheers, Alex

