A path to the file is constructed by merely adding a URI to the value of the root directive. If a URI has to be modified, the alias directive should be used Syntax: alias path; Default: — Context: location Defines a replacement for the specified loca
1)参看如下连篇文章:Nginx设置alias实现虚拟目录 alias与root的用法区别http://down.chinaz.com/server/201111/1382_1.htmNginx下alias支持PHP的问题http://i.laoer.com/nginx-alias-php.html 2)我的环境是:web根目录在 /var/www/html/中,但是我要加上一个类似于apache的别名目录 /bbs ,此目录不在 web根目录中.我的配置文件如下: server { l