nginx设置默认首页
指令index用于设置网站的默认首页,
语法是:index file ...;
列如:
location ~ ^/data/(.+)/web/ $
{
index index.$1.html index.my1.html index.html
}
如果:/data/abc/web/
列以上代码会优先解释,index.abc.html -> index.my1.html -> index.html
nginx设置默认首页
指令index用于设置网站的默认首页,
语法是:index file ...;
列如:
location ~ ^/data/(.+)/web/ $
{
index index.$1.html index.my1.html index.html
}
如果:/data/abc/web/
列以上代码会优先解释,index.abc.html -> index.my1.html -> index.html
linux环境下安装nginx步骤启动1、验证nginx配置文件是否正确 2、重启Nginx服务
Jun 08, 2018
关于nginx+php5.3.8+eclipse3.7工作空间的配置方法_ng
Jul 05, 2016
nginx依赖模块pcre、zlib、openssl 安装教程
Jun 08, 2018
Nginx反向代理+DNS轮询+IIS7.5 千万PV 百万IP 双线 网
Feb 06, 2017