介绍
Nginx 配置
location
server {
	listen       80;
  server_name  localhost;
	location / {
		root   html;
		index  index.html index.htm;
	}
	
	# 精确匹配
	location /img/xxx.png {
		root   html;
	}
	
	# 正则表达式 *代表不区分大小写
	location ~* \.(GIF|png|bmp|jpg|jpeg) {
		root   /home;
	}
	
	# 正则表达式 ^~以某个字符路径开头请求
	location ^~ /immoc/img {
		root   /home;
	}
}2020年9月10日大约 10 分钟
