Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
2.8k views
by
Hello, I recently migrated to Webinoly, Before I used easyengine, I'm happy with Webinoly. I need the custom configuration to work with woocommerce, in easyengine of a folder in each domain for this configuration, how to do to use an Nginx configuration for domain with Woocommerce and what will this customization?

1 Answer

0 votes
by Expert

Hi Arrenato,

If you need add more rules to your actual NGINX configuration, you can use a custom-nginx.conf file located at /var/www/domain.com please read the documentation, at the end of the site command docs you will find the NGINX setup per site section.

Regards.

by Expert

You should only include:

  • The request uri for shop, cart, my-account, checkout and addons.

Webinoly already handle all the other part. We can not include the complete solution by default because this would affect all the non-woo sites too.

Regards.

by
Could you post an ideal setup for woocommerce? It would greatly help the Webinoly users and the forum. Thank you!
by Expert

I think this should be enough:

if ($request_uri ~* "/basket.*|/shop.*|/store.*|/cart.*|/my-account.*|/checkout.*|/addons.*") {
         set $skip_cache 1;
}

All the other parts are currently handled by Webinoly by default.

by
So is this form correct? Thank you very much for your attention!

if ( $cookie_woocommerce_items_in_cart = "1" ){

    

    set $skip_cache 1;

    }

  

    # Don't cache uris containing the following segments

    

      if ($request_uri ~* "/basket.*|/shop.*|/store.*|/cart.*|/my-account.*|/checkout.*|/addons.*") {

         set $skip_cache 1;

}
by Expert
See my last comment.

The Woo cookie is already handled by Webinoly by default.
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...