A high traffic site I host for a client needed to be available on both HTTP and HTTPS. This particular site, though, needed different caches depending on what scheme was used.
Note: Since Varnish doesn’t support HTTPS, it is in this case placed behind Nginx. Nginx then indicates any HTTPS requests passed onto by setting the X-Forwarded-Proto
header.
With Varnish handling caching, this is what needed to be added to the configuration:
Here are some other posts you may like
The essence of smart home/gardening technology is to simplify your life, not complicate it. With the recent arrival of robot mowers that don't require a border wire, I finally felt ready to embrace this technology. The Ecovacs Goat G1 robot mower, with its clean and sleek design, seemed like a…
One of the great things about owning a Tesla is the fact that it in essence is a computer on wheels. With an API in place, this means that I can pull information from the car, just like the app does on your smartphone. It took me less than a day after taking…
Electric power companies, in general, are pretty much the same. Tibber however, is unlike any electricity company I had seen before. They try to utilise the data we get from smart devices, which they also sell, to save electricity, money and the environment, as well as improving comfort. It’s a…