i'm not able to access the ip/admin, here but when I try to server on '/' location it is serving, can anyone help to get rid from it
Nginx Configuration (/etc/nginx/sites-available/default)
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name xxx.85.127.14;
location / {
root /root/deployment/user/dist;
index index.html;
try_files $uri /index.html;
}
location /admin {
root /root/deployment/admin/dist;
index index.html;
try_files $uri /index.html;
}
location /api/ {
proxy_pass http://localhost:5000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}