Create this file
/etc/nginx/conf.d/{{ configFilename }}
with content:
Add this line
inside
your existing
location ~ \.php$
block:
Complete PHP location block example:
RunCache stores internal state files under
wp-content/cache/runcache/
and generated config files under
wp-content/uploads/runcache/
. None of them are served over HTTP. Add this block to your NGINX
server
block, next to the two includes:
Test your NGINX configuration:
If the test passes, reload NGINX to apply changes: