Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a number of websites behind a barracuda appliance, on which an SSL certificate is configured. It forwards the requests to IIS as HTTP, without any information about whether the original request from the client was HTTP or HTTPS.

Is there a way to configure barracuda to include a custom HTTP header when it converts from HTTPS to HTTP? Or some other mechanism I might leverage to detect, from website code, whether the original request was HTTPS?

How can you detect SSL offload on server behind a load balancer? discusses doing this for other software, but I can't find a way of doing the same thing with barracuda.

share|improve this question

The typical way this is done is to have the reverse proxy/load balancer set an HTTP header that specifies the original protocol that was used by the connection from the client. That header is known as X-Forwarded-Proto.

X-Forwarded-Proto: https

Instructions for doing this with the Barracuda Load Balancer can be found in its documentation.

In addition to having the load balancer set this header, your application must also be aware of the header, and pretend that the connection was HTTPS when it is set. Many common applications already recognize X-Forwarded-Proto and act appropriately; check with the vendor of the web app or its developers.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.