[root@plesktest varnish]# cat default.vcl | head -n70 # Marker to tell the VCL compiler that this VCL has been adapted to the # new 4.0 format. vcl 4.0; import std; # Default backend definition. Set this to point to your content server. backend nossl { .host = "SERVERIP"; .port = "8888"; .connect_timeout = 600s; .first_byte_timeout = 600s; .between_bytes_timeout = 600s; .max_connections = 800; } backend ssl { .host = "SERVERIP"; .port = "8889"; .connect_timeout = 600s; .first_byte_timeout = 600s; .between_bytes_timeout = 600s; .max_connections = 800; } acl purge { "localhost"; "127.0.0.1"; } # This function is used when a request is send by a HTTP client (Browser) sub vcl_recv { if (std.port(server.ip) == 6080) { set req.backend_hint = ssl; } if (std.port(server.ip) == 6081) { set req.backend_hint = nossl; }