Hi,
does anyone know where I can find tutorial for configuring varnish on nginx localhost?
Thanks
does anyone know where I can find tutorial for configuring varnish on nginx localhost?
Thanks
Thank you for your reply.Badly I don't have any live experience with varnish , could suggest your google results - but I don't let other's shoot arrows towards unpredictable success rate![]()
Thank you for your reply.
I've installed Bitnami wordpress with nginx and sss stack on my linux localhost because I thought it will be easier to conigure the stack. Sadly, there is no online tutorial for configuring that stack with varnish cache on localhost.
I had to delete Bitnami stack and I installed LEMP stack separately.
Here it is if you still need it... varnish-nginx-wordpress vclHi,
does anyone know where I can find tutorial for configuring varnish on nginx localhost?
Thanks
Here it is if you still need it... varnish-nginx-wordpress vcl
And more if you want to dive into it Varnish Configs
By the way Bitnami way for varnish Configuring Varnish in Bitnami
You have to exclude woo pages from varnish. Here's from the official woocommerce page https://docs.woocommerce.com/document/configuring-caching-plugins/#section-5Thank you @ckeeper for your tips.
Unfortunately, as you can see on provided link Configuring Varnish in Bitnami, this is configuration only for Apache.
Luckily, I gave up from Bitnami. I installed LEMP without any pre-configured stack. Varnish works fine, except woocommerce pages.
Perfect!You have to exclude woo pages from varnish. Here's from the official woocommerce page https://docs.woocommerce.com/document/configuring-caching-plugins/#section-5
I use varnish on my woocommerce sites, I excluded these pages and cookies:
Page:
cart
my-account
checkout
addons
\?add-to-cart=
add-to-cart
Cookies:
woocommerce_cart_hash
woocommerce_items_in_cart
wp_woocommerce_session_
You have to exclude woo pages from varnish. Here's from the official woocommerce page https://docs.woocommerce.com/document/configuring-caching-plugins/#section-5
I use varnish on my woocommerce sites, I excluded these pages and cookies:
Page:
cart
my-account
checkout
addons
\?add-to-cart=
add-to-cart
Cookies:
woocommerce_cart_hash
woocommerce_items_in_cart
wp_woocommerce_session_
Thank you @ckeeper for your tips.
Unfortunately, as you can see on provided link Configuring Varnish in Bitnami, this is configuration only for Apache.
Luckily, I gave up from Bitnami. I installed LEMP without any pre-configured stack. Varnish works fine, except woocommerce pages.
Hey Sara, I have tested bitnami Nginx stack with PHP and MySQL (LEMP) on my virtualbox, under the stack directory there is varnish, all the procedures I have posted for apache is same for the nginx version to activate Varnish. I hope this has cleared up your issue.Thank you @ckeeper for your tips.
Unfortunately, as you can see on provided link Configuring Varnish in Bitnami, this is configuration only for Apache.
Luckily, I gave up from Bitnami. I installed LEMP without any pre-configured stack. Varnish works fine, except woocommerce pages.
sudo mv installdir/varnish/scripts/ctl.sh.disabled installdir/varnish/scripts/ctl.sh
sudo installdir/ctlscript.sh start varnish