[BlueOnyx:26465] Re: Nginx config.

Michael Stauber mstauber at blueonyx.it
Mon Sep 11 12:48:58 -05 2023


Hi Colin,

> I am using Nginx and Cloudflare for one of my own sites.
> 
> I am not happy with the load  speed and want to check my settings.
> 
> This is the Cloudflare instructions but I cannot see where to add them. 5209R
> 
> Super Page Cache for Cloudflare - Nginx Settings
> Browser caching rules
> Open the configuration file of your domain and add the following rules:
>      location ~* \.(xml|xsl)$ { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
> location /robots.txt { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
> location /wp-cron.php { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
> location = /wp-content/wp-cloudflare-super-page-cache/www.whitehands.uk/debug.log { access_log off; deny all; }
>                          
> Save and restart Nginx.
> 
> All the nginx conf files I can find say don't edit them.
> Are there separate config files per site?

If this is on a BlueOnyx, then I'd stick those options into a new config 
file located in the directory /etc/nginx/default.d

Just make sure its name ends with *.conf

Then restart Nginx and see if it works for you.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list