nginx

作者: heliping_peter | 来源:发表于2018-11-17 09:57 被阅读6次

配置

  1. 如果有url路径,则查找的网页本地路径需要加上url的路径,比如/root/good
    2.需要注意第一行的user,需要给文件夹加权限,要加到root目录。
    chmod -R 777 /root
        location /{
                root    /usr/local/nginx/html;
                index   index.html;
}
        location /good {
                root    /root;
                index   hello.html;
}

相关文章

网友评论

      本文标题:nginx

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