RE: Setup Varnish Cache with VHosts (Ubuntu 14.04)
11-30-2015, 05:04 PM
(This post was last modified: 01-04-2016, 11:19 PM by bbspike.)
If you experience some flaws with your panel and certain modules you can skip de panel via varnish by adding this code in default.vcl:
No need to use if your panel is via SSL.
Code:
sub vcl_recv {
if (req.http.Host == "subdomain.domain.com") {
return (pipe);
}
}No need to use if your panel is via SSL.


![[Image: logo2.png]](https://www.webimproved.nl/templates/web_improved/images/logo2.png)
