Hello @noise
Thank you for reaching out, and I am happy to help!
This manages the nginx caching on your serve,r and it’s not specificaly related to the W3 Total Cache and the rules that W3TC may add to the nginx.conf
What you see in the wiki page is just an example; however, you should make sure that the rules that W3TC adds are in the nginx.conf file in that is being used for the website.
I hope this helps!
Thanks!
Sorry – not sure what you’re saying
Are you saying that W3Total Cache will add the appropriate code into the nginx.conf file on each account on a WHM server?
Or do I add that code to the nginx.conf files myself ?
-
This reply was modified 8 months ago by
Phil Emery.
-
This reply was modified 8 months ago by
Phil Emery.
-
This reply was modified 8 months ago by
Phil Emery.
-
This reply was modified 8 months ago by
Phil Emery.
Hello @noise
Thank you for your feedback.
By default, the W3TC recognizes the nginx environment. Usualy, the nginx.conf is located in the root of your website directory.
In W3 Total Cache, you can go to Performance>Install and check the path of the nginx.conf file where it’s expected to be
If the file is not created there, you should manually add the rules to the nginx.conf
I hope this helps!
Thanks
When you say “root” do you mean within the “public_html” directory or the one aboe that?
I re-ran the set up and there was no indication of NGINX and there seems to be no file added to public_html or the directory above it.
I did find a couple of files at
/public_html/website.com/wp-content/plugins/w3-total-cache/ini/
nginx-network-sample-config.conf
nginx-standalone-sample-config.conf
Not sure what the difference is
Is one supposed to edit these and then move these to the root?
I think the nginx conf files on this install on (a vps AlmaLinux 9.6.0, with WHM/cPanel, NGINX caching and mySQL 8.4, hosting multiple accounts each with a WordPress website) are located here
/etc/nginx/conf.d/users/domainname.conf
So is what would go in place of
include "/var/www/vhosts/yoursite.com/nginx.conf";
in the nginx-standalone-sample-config.conf file in the w3-total-cache/ini/ directory? (quotes around the data to be replaced for clarity)
I have gone through your documentation and even your github stuff but it’s missing a lot of information and what’s there is not clear.
-
This reply was modified 8 months ago by
Phil Emery.
-
This reply was modified 8 months ago by
Phil Emery.
Hello @noise
Thank you for your feedback.
Is anything in the W3 Total Cache configured? Can you please share the path suggested in the Performance>Install tab?
Can you please also share the website URL?
Thanks!
There is nothing mentioned about an nginx.con file in install panel, just the .htaccess files in the. There is no “nginx” specific settings in w3 total cache
The paths are
/home/username/public_html/wp-content/cache/minify/.htaccess:
The URL is https://canadaslotcarracing.ca/
Hello @noise
Thank you for the clarification.
So you are on the apache server and want to use Nginx Proxy caching. Got it and sorry for the confusion!
There is no need to add any rules in this case, just check the nginx configuration and make sure the bypass is set so that apache is handling static files.
You also havle Cloudflare so that is another layer of caching
Thanks!