ITeye博客

nginx alias与root的区别

chembo · 2011-10-13 12:05 · nginx · 开源软件 · nginx · alias · root · Markdown

看例子:

  1.  location ~ ^/awstats/ {
     root  /home/awstats/;
    

访问:http://test.com/awstats/ 实际访问的是/home/awstats/awstats/

  1.  location ~ ^/awstats/ {
     alias  /home/
    

访问:http://test.com/awstats/ 实际访问的是/home/

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。