location not working

uragnorson nginx-forum at forum.nginx.org
Thu Apr 8 20:36:47 UTC 2021

On RHEL I have, 

location / {
root /usr/share/nginx.html;

location /dist/ { 
alias /usr/share/nginx/html/dist/;

I am able to navigate to http://server/dist but in dist the index.html is
looking for http://server/js but it should be http:/server/dist/js is there
a way to add the extra "dist" ?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,291204,291204#msg-291204

More information about the nginx mailing list