New Video: • Docker 101: Using Varnish to cache HT...
What's going on YouTube. Today I am bringing you a video about how you can use varnish with a website.
Now the reason why I am bringing up this topic is because one of my co-workers was given the task of setting up varnish to work with our docker containers. Giving the fact that most people do not know that varnish does not work with HTTPS request, I am going to provide one of many solutions to this issue.
Before we begin, we need to understand the concept of the one of the solutions. The client is capable of sending HTTP and HTTPS request, so we want to make sure that the connection between the system is secured. We would need a load balancer or proxy service to receive the external requests. The service would then proxy the request to the varnish service; which in-turn would make a backend request to the web service.
So in this scenario, I would use nginx as the proxy. While there are other services that can be used to proxy connections, I just randomly picked nginx.
When we configure nginx, we need to make sure that it is proxying the request to varnish. With varnish, it will check to see if it already has the request cached. If not, we would need to configure the backend so that it will request any missing data from the web server
Смотрите видео Advance Docker Setup: Using Varnish to page cache HTTPS requests онлайн без регистрации, длительностью online в хорошем качестве. Это видео добавил пользователь WebDev Dave 23 Сентябрь 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,008 раз и оно понравилось 5 людям.