Welcome!
Log In
Create A New Profile
Home
>
Nginx Related Forums
>
Other discussion
> Topic
Advanced
why can i get what I want about location directive?
Posted by
blitz
Forum List
Message List
New Topic
blitz
why can i get what I want about location directive?
January 03, 2017 10:09PM
Registered: 7 years ago
Posts: 1
location = / {
root /usr/share/nginx/myhtml;
index test.html;
}
location / {
root /usr/share/nginx/html;
index index.html;
}
when I request http://localhost, I get /usr/share/nginx/html/test.html,which is not exist,so I get 404 not found.
Reply
Quote
Newer Topic
Older Topic
Print View
RSS
Sorry, only registered users may post in this forum.
Click here to login
Online Users
pamplemousse
Guests: 344
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018