I want to set a initial page inside a folder, besides the common index.htm
I want to change index.htm to /folder/file.htm
Is it possible using nginx?
In my Apache server all I have to do is config the htaccess file, putting this:
DirectoryIndex /folder/file.htm
PS: I tried to do that with RegEx, but I really preffer with DirectoryIndex
Thanks a lot in advance!!!
Best Answer
Nginx has a directive,
index
, that is equivalent to Apache'sDirectoryIndex
. As per the documentation:As indicated from the above, you can specify multiple files, each of which will be tried in sequence, and can also specify an full path if the file you wish to use is not under the current directory.