i have two web web sites and i want to cache them with varnish. could i cache them on same varnish with using same port?
for example; www.domain1.com:80, www.domain2.com:80
i have two web web sites and i want to cache them with varnish. could i cache them on same varnish with using same port?
for example; www.domain1.com:80, www.domain2.com:80
If your backends are different for each of the domains, you can do something like the following.
If your domains are on the same backend, it is just a matter of making sure that the .host that you connect to answers the request properly. i.e. NameVirtualHost 127.0.0.1:80 and make sure the configs for the domains are set to answer on 127.0.0.1:80.
Yes you can. Varnish is a reverse caching proxy. It will cache any number of web-sites configured as back-ends.