Latest Wordpress running on Rocky 8.
With Permalinks set to Postname articles in the format of http://www.example.com/this-is-an-article/ return a 404.
Here is my Nginx conf file:
server { listen 80; server_name xyz.com www.example.com; root /db/docroot/www.example.com; index index.php; rewrite_log on; access_log /db/logs/host.access.log main; error_log /db/logs/example.debug.log debug; location / { root /db/docroot/www.example.com; index index.php; try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params; }
}