美文网首页
nginx 使用记录

nginx 使用记录

作者: 慢慢羊的快发明 | 来源:发表于2019-11-08 10:02 被阅读0次

    修改配置文件nginx.conf

    1.添加域名配置

        在文件夹C:\Windows\System32\drivers\etc\host 文件里面,添加余名配置127.0.0.1 www.test.com

    2.修改nginx.conf配置

    server{

            listen      80;

            server_name  www.xuecheng.com;

            ssi on;

            ssi_silent_errors on;

            location / {

                alias  F:/teach/xcEdu/xcEduUI01/xc-ui-pc-static-portal/;

                index  index.html;

        }

      }

    //修改之后 使用命令nginx.exe -s reload 重新加载, 刷新界面 http://localhost/

    相关文章

      网友评论

          本文标题:nginx 使用记录

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