On 07/02/14 02:23, Valentin V. Bartenev wrote:
The reason is documented:http://nginx.org/r/index
"It should be noted that using an index file
causes an internal redirect ..."
Thanks very much for this Valentin. I've been stuck on this for a while. The solution was to replace the "location =
Hello,
I want the index.html file in a particular directory to only be served when the
domain's root URI is requested.
Using the config
server example.com;
index index.html;
location = / {
root path/to/dir;
}
a request to example.com results in index.html in the Nginx default root
"/html"