A
A
Ayk722017-09-23 23:11:46
Nginx
Ayk72, 2017-09-23 23:11:46

How location works?

Goodnight!
Please tell me how such location nginx works:
Location /images/ {
...
}
There are URLs:
1. site.ru/images/one.html
2. site.ru/new-images/two.html
3. site.ru/images-new/u.html
4. site.ru/images-new.html
5. site.ru/new-images.html
Which of these addresses will be processed in this location?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Mukovoz, 2017-09-23
@castomi

This one will open
1. site.ru/images/one.html
True, with some amendment, it all depends on what other locations are, perhaps some will be more priority, this is described adequately in the documentation.
https://nginx.ru/ru/docs/http/ngx_http_core_module...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question