六、查看nginx默认首页和目录:如下,可以看到,默认的目录是html,首页是index.html
[root@djw1 conf]# grep html nginx.conf
root html;
index index.html index.htm;
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
# root html;
# root html;
# index index.html index.htm;
# root html;
# index index.html index.htm;
进入首页后,修改内容后,进行访问: