I would like to use only HTTP 1.0 on a certain VirtualHost in Apache. The reason for doing so is that I use CloudFlare, and my apps requires the Content-Length header in the HTTP response. However, CloudFlare only forwards the Content-Length header if HTTP 1.0 is used as the protocol (refer to this support ticket: https://support.cloudflare.com/hc/en-us/requests/527063).
My question here is how do I easily set up a certain VirtualHost in Apache to accomplish this (force the use of HTTP 1.0 as the protocol)? Do I use something like SetEnv in a sites-available config file? Or perhaps, I use the HTTP 1.1 protocol, but send HTTP 1.0 as the protocol in the header?
Thanks.
Best Answer
From https://www.safaribooksonline.com/library/view/apache-the-definitive/0596002033/re249.html here are examples of using the
force-response-1.0
variable withBrowserMatch
.with official docs at http://httpd.apache.org/docs/2.4/env.html#special which state