美文网首页
查找nginx html文件路径方式

查找nginx html文件路径方式

作者: 南京小邓子 | 来源:发表于2020-09-09 11:07 被阅读0次

1、全盘搜索,找到nginx总配置文件,find / -name nginx.conf

2、在 nginx.conf 中看有没有对应端口的html路径设置,没有则寻找该文件include开头的行

例:include /etc/nginx/conf.d/*.conf;

        include /etc/nginx/sites-enabled/*;

去这两个路径找就行了

有时候nginx默认页面文件不一定叫做index.html

/var/www/html/index.nginx-debian.html

相关文章

网友评论

      本文标题:查找nginx html文件路径方式

      本文链接:https://www.haomeiwen.com/subject/icheektx.html