how can i cahe one more web site on same backend server (web server) with varnish?

Posted by Kerberos on Server Fault See other posts from Server Fault or by Kerberos
Published on 2010-04-02T18:41:34Z Indexed on 2010/04/02 18:43 UTC
Read the original article Hit count: 277

Filed under:
|

i have one web server which is IIS that is back on varnish. there are more web sites on ISS. there are all web sites header's on IIS and all web sites publish from port 80. can i cache all web site by varnish like below code;

backend cacheWebSite{.host = "192.168.0.1"; .port = "80";} sub vcl_recv {if (req.http.host == "www.example1.com") {set req.backend = CacheWebSites;} if (req.http.host == "www.example2.com") {set req.backend = CacheWebSites; } if (req.http.host == "www.example3.com") {set req.backend = CacheWebSites; }}

i can't test this code. that is just senario. thank you for your help already now.

© Server Fault or respective owner

Related posts about varnish

Related posts about cache