Wordpress in subdir gives not found error

I have installed site with easy engine. Wordpress on root dir working fine. but wordpress inside directory is getting troubleshooting. I have wordpress installed at https://example.com, https://example.com/blog and https://example.com/cb

Wordpess inside folder cb and blog are giving not found error. I tried below code.

location ~ /(elearning) {

location /blog/ {
	 try_files $uri $uri/ /blog/index.php?$args;
location /cb/ {
	 try_files $uri $uri/ /cb/index.php?$args;
location / {
	if ($http_host ~ "^www\.(.+)$"){
	rewrite ^(.*)$ http%2://%1$request_uri redirect;
	rewrite ^/?(.*) https://$server_name/$1 redirect;
	if (!-e $request_filename){
		rewrite ^/(.*)$ /index.php break;

Please suggest correction in it. I am new to nginx and was much familiar with apache