amazon web services – Configure Nginx to have two different URLs, one for the main site and another for the admin dashboard

i want two diffrent urls example.com and example.com/admin-dsahboard when i hit example.com/admin-dsahboard i can see the admin-dsahboard panel but in address bar it shows example.com ,
/admin-dashboard is missiing so when i reload the page it reload to frontend website

server {
    listen 80;
    server_name example.com;

    location / {
        root /path/to/file/;
        index index.html;
    }
    location /admin-dashboard/ {
        root /path/to/file/;
        try_files $uri $uri/ /admin-dashboard/index.html;
    }    try_files $uri $uri/ /index.html;

}

Read more here: Source link