February 2018
Beginner to intermediate
348 pages
9h 40m
English
server {
server_name website.com;
location /document {
[...] # requests beginning with "/document"
}
location ~* ^/document$ {
[...] # requests exactly matching "/document"
}
}
The question remains the same—What happens when a client sends a request to download http://website.com/document? There is a trick here. The string specified in the first block now exactly matches the requested URI. As a result, Nginx prefers it over the regular expression.
Read now
Unlock full access