What is the point of defining location / { }
since, if I understand correctly this will match all potential URIs and "lose" any battle against a location with a more specific URI ?
My reasonning is you can just put all default values directly into the server block instead of defining a location / { }
.
Hence if I am correct, this serves no purpose :
server {
root /www/html;
location / {
root /www/html;
}
}
PS: I am quite new to nginx so feel free to tell me if I could phrase things better to make the question more useful/discoverable.