SatelliteWP / rocket-nginx

Rocket-Nginx is a Nginx configuration that makes WP-Rocket even faster by serving static pages directly without loading WordPress or PHP.
MIT License
579 stars 129 forks source link

WooCommerce Add to cart (405 Not Allowed) #181

Closed m4aax16 closed 2 years ago

m4aax16 commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

This works as expected for standard requests but when using with WooCommerce I get a 405 error when trying to add a product to the basket. Do you know how to extend the try_files to work for this WooCommerce scenario also? It happens to all POST requests. Also when I try to login via Social Login.

Versions What version of Nginx are you using ? nginx/1.20.1 What version of Rocket-Nginx are you using ? Latest

What version of WP Rocket are you using ? 3.11.3

Are you using Nginx as a reverse proxy (with Apache for instance) ? No

To Reproduce Steps to reproduce the behaviour:

  1. Go to https://4gs.shop/product/far-cry-6-eu-pre-order/
  2. Click on 'Add to Cart'
  3. See error

Did you activate the debug in Rocket-Nginx ? Please do and include any headers. No

Make sure you include ALL Nginx configuration files you are using. Remove any sensitive information before submitting.

maximejobin commented 2 years ago

I truly doubt the problem comes from Rocket-Nginx.

Rocket-Nginx does nothing when a POST is made.

This looks like a problem with your Nginx configuration.