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