Nginx application hosting issue

I have build angular application
ng build --output-path=dist/myapp --base-href=/myapp/

in NGINX , I have this settings
nginx :

location /myapp/ {
alias /usr/share/nginx/html/myapp/;
try_files $uri$args $uri$args/ /myapp/index.html;
}

when I open the url xx.xx.xx.xxx/myapp I see 404 for asset folder contents in browser console.

How to fix this ?


myapp

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.