Mahesh Budeti Mahesh Budeti - 3 years ago 189
PHP Question

xampp on windows 8 and windows 7 communicate through varnish installed on vmware

I am using xampp on windows 8 and windows 7 machines. I have wordpress MU website installed and running fine on it.

Now, I want to install Varnish. As I didn't find any Varnish Installations for Windows. I opted to install VMware -> Ubuntu -> Varnish.

How can I make the requests for localhost(xampp) to communicate through Varnish.

Answer Source

step by step process:

step#1

in ubuntu obtain the ip using the following command ifconfig -a

step#2

add a entry in the windows hosts file to point the local address to the ubuntu ip obtained in step#1

192.168.220.128 mysite.local

step#3:

in varnish config file change -a to 80

step#4

in default.vcl change host to windows IP (can be obtained from windows command line using ipconfig)

step#5

restart varnish and you are all set to go...

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download