设置默认页面
样例
location / {
index index.$geo.html index.html;
}
API
语法 | 默认 | 作用域 | 描述 |
---|
index file …; | index.html; | http, server, location | 打开端口时的,默认页面 |
参考:
http://nginx.org/en/docs/http/ngx_http_index_module.html
https://blog.csdn.net/qq_32331073/article/details/81945134