Answer the question
In order to leave comments, you need to log in
How to organize the desired path in location, nginx ?
There was a situation when it is necessary to specify another root for the site.ru/admin url.
It looks like this:
location /admin {
try_files $uri $uri/ /$yii_bootstrap?$args;
root /var/www/site.ru/test/backend/web;
}
Answer the question
In order to leave comments, you need to log in
location /admin {
try_files $uri $uri/ /$yii_bootstrap?$args;
alias /var/www/site.ru/test/backend/web;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question