Location of the Nginx default index.html file on MAC OS
Lewis4u's answer may be right! But I think we should have a clearer explanation
In nginx.conf file we see the root path is:
root html;
The question is: Where is "html" relative path? This relative path is set at compile time. You can check the path by command
$>nginx -V
You will see "--prefix=/usr/local/Cellar/nginx/1.12.0_1", this is the folder of nginx files. Now you should "cd" to this directory to see your "html" folder.
$> cd /usr/local/Cellar/nginx/1.12.0_1
$> ls -l html
Then you will see the "html" folder is a softlink to "/usr/local/var/www"
In conclusion, in my case, the "html" folder is "/usr/local/var/www". It may be different on your MAC. But hey, you got the method to find out. Right?!
On later versions of brew, the location should be:
/opt/homebrew/var/www
I found it finally on my own. It's in:
/usr/local/var/www/index.html