Good day.
The situation seems to be ordinary, but for some reason I can not find sensible information on the issue.
Actually, WP put in example.com/blog, on example.com another dviglo. There is a separate blog folder in the root, the same in urla / blog.
Installation was successful, everything is OK. at example.com/blog/wp-admin admin panel everything is fine.
But it is necessary to open any page, any other embedded URL, for example, example.com/blog/page-1/ then it shows just 404 main engines.
Thoughts are: either edit something in the .htaccess root, or edit nginx.conf.
In principle, it is logical - these settings are passed to example.com/blog - because this is a really existing folder in which index.php is located - and then it accepts and processes everything.
But if example.com/blog/page-1/, then there is no page at this address, and therefore standard processing takes place. And it should be like this: aha, this in a subfolder means referring to example.com/blog/index.php, and the appeal obviously goes to example.com/index.php
Actually, with wp-admin - exactly the same situation. There is a physical file at example.com/blog/wp-admin/index.php - therefore it is being processed.
It is also possible that the cant is from blog / .htaccess. But I sin more towards the general settings of nginx. For example.
location / { try_files $uri $uri/ /index.php?$args; index index.html index.htm index.php; } Actually, the help here is https://codex.wordpress.org/Nginx But it is written for the entire domain. And in principle, I would have to try how: leave all the settings for the root site, but give the other, WP-shny processing settings for the subfolder. How to do this to me is not clear yet.