How to install WordPress on sub directory in ubuntu 16.4 in same vhost with AngularJS

I found the answer

server {
  server_name www.example.com;
  return 301 $scheme://example.com$request_uri;
}

server {
  listen 80;
  server_name example.com www.example.com;
  return 301 https://example.com$request_uri;
}

server {
  listen 443 ssl;
  server_name example.com www.example.com;

  root /www/sites/Yoga-Frontend/dist/Yoga-Frontend;

  ssl_certificate /etc/ssl/bundle_example.com.crt;
  ssl_certificate_key /etc/ssl/example.com_private_key.key;


  location /yoga {
    index index.php index.html index.htm;
    try_files $uri $uri/ /yoga/index.php?q=$uri&$args;

  }

  location ~ \.php$ {
    fastcgi_split_path_info ^(/yoga)(/.*)$;
    include fastcgi_params;
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
  }
}