nginx serving corrupt images
Reinis Rozitis
r at roze.lv
Thu Feb 23 11:32:06 UTC 2023
> Question:
> if I don't have any like inside de
> location / {}
> how does nginx delivers an html file out of many possibly found in the root for the location?
There is generally no need to specify location / { .. } if you don't provide any specific configuration or behavior for it.
Having just:
server {
root /some/path;
}
is enough to serve (static) files.
If there is a request to '/' by default nginx will try to look for (index.html http://nginx.org/en/docs/http/ngx_http_index_module.html#index or any other files in defined by that directive in given order.
rr
More information about the nginx
mailing list