nginx 配置多个目录

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

               
<pre name="code" class="python">    server {        listen       8001;        server_name  localhost;        #charset koi8-r;        #access_log  logs/host.access.log  main;        location / {            root /t/deploy/zjdev/deployedApps/zjzc-web-frontEnd/;            index  index.html index.htm;        }        location /backoffice  {            root /t/deploy/zjdev/deployedApps/zjzc-web-backoffice/;            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:则是指定目录某个目录的父目录,如:locate /hello/ {root /a/;}那么在/a/目录下必须有一个hello目录,否则报错.


            
 

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow

这里写图片描述

猜你喜欢

转载自blog.csdn.net/trigfj/article/details/83721373