Nginx Configuration – Rails app with WordPress as a subdirectory
Change "wordpress-blog" to whatever you want :) Change "wordpress_blog" to your wordpress app folder. Change php version (7.0) on fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; (Depending on the version that you are using) Credit to this link.