0 votes
542 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.

* * * * * * *

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

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

...