Welcome! Log In Create A New Profile

Advanced

location not working

April 08, 2021 04:36PM
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" ?
Subject Author Posted

location not working

uragnorson April 08, 2021 04:36PM

Re: location not working

Francis Daly April 09, 2021 02:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 79
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready