Answer the question
In order to leave comments, you need to log in
How does location processing work in Nginx?
server {
listen 81;
root /usr/share/nginx/html/app;
location / {
try_files $uri $uri/ /index.html;
}
location = /admin {
alias /usr/share/nginx/html/app2;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question