Hello, I have done the steps here:
- Added these 4 lines in nginx configuration
fastcgi_cache_key "$scheme$request_method$host$request_uri"; fastcgi_cache_path /dev/shm/nginx-cache/wp levels=1:2 keys_zone=WORDPRESS:100m inactive=60m max_size=1g; fastcgi_cache_use_stale error timeout invalid_header http_500; fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
- Changed the site configuation from
include enable-php-81.conf;
toinclude enable-php-81-wpfastcgi.conf;
- Installed Nginx Helper plugin in Wordpress
- Added
define('RT_WP_NGINX_HELPER_CACHE_PATH','/dev/shm/nginx-cache/wp');
to wp-config.php
And everything seems to work, I get cache HIT in the header response for the wordpress site main page. Except when I try to go to any other page, I get 404. I notice that the url that doesn't work follows index.php
routing page forexample: https://domain.com/index.php/contact/
to go to contact page. What am I missing here? Any ideas?
Regards,
Tony