Home > front end >  Nginx separate directory configuration failed
Nginx separate directory configuration failed

Time:10-12

Problem: the curl localhost/ABC return 404, consult what reason be? My current configuration is as follows:

Sites - enabled/default file location is set as follows,

The location/{
Root/var/WWW/HTML;
Index index. HTML index. Nginx - debian. HTML;
}

The location/ABC {
Root/SRV/test;
The index index. HTML;
}



Other information:
/SRV/test this directory can be accessed, because if it's just the following configuration, curl localhost can return the correct HTML content,

The location/{
Root/SRV/test;
The index index. HTML;
}
  • Related