varnish cache configuration for multiple domain

Hari Metkari harimetkari at gmail.com
Mon Jan 24 16:41:23 CET 2011


Hi All,

I am implementing varnish cache for multiple separate domain.i.e
sitetwo.tieto.com and site3.tieto.com

I am configured varnish cache on varnish server local ip address
(192.168.126.30) and my sitetwo.tieto.com ip address 192.168.126.60 and
site3.tieto.com ip address 192.168.126.20 as per snap
varnush-cache-server-setup.bmp.Here I make varnish cache server act as a
central server and cache content.

when I am add only single backend for single domain in VCL file that time
it's working fine with varnish logs.see in snap site3.bmp but when I added
multiple backend for multiple domain in vcl file that time i hit
sitetwo.tieto.com and check varnish logs see snap sitetwo.bmp(here I hit
sitetwo.tieto.com it calls to backend of site3 instead of backend site2 in
varnish logs,here I am expected backend open site2,here is main my problem).

Please find attached varnish configuration files and snap of varnish logs.

Please look this issue and please help me where i am wrong in varnish cache
configuration.

Thanks in Advanced [?]


Thanks,
Hari Metkari
Software Engineer.
+91-9881462183
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110124/8126d5fd/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 328.png
Type: image/png
Size: 569 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110124/8126d5fd/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default.vcl
Type: application/octet-stream
Size: 4523 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110124/8126d5fd/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: site3.bmp
Type: image/bmp
Size: 3932214 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110124/8126d5fd/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sitetwo.bmp
Type: image/bmp
Size: 3932214 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110124/8126d5fd/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: varnish
Type: application/octet-stream
Size: 3169 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110124/8126d5fd/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: varnush-cache-server-setup.bmp
Type: image/bmp
Size: 631718 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110124/8126d5fd/attachment-0011.bin>


More information about the varnish-misc mailing list