Add the following code snippet in wp-config.php
define('AUTOSAVE_INTERVAL', 300); // seconds
define('WP_POST_REVISIONS', false);
Edit/add/append the following location block within the server block:
location / { try_files $uri $uri/ /index.php?$args; }
If your WordPress blog is in /faq/ sub-directory, try :
## ## note path to /faq/index.php ## location /faq/ { try_files $uri $uri/ /faq/index.php?$args; }
location /blog {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404,
#try_files $uri $uri/ = 404;
try_files $uri $uri/ /blog/index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
client_max_body_size 20M;
==================================================
and on /etc/php/7.4/fpm/php.ini
upload_max_filesize = 20M
post_max_size = 25M