Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1077391
  • 博文数量: 120
  • 博客积分: 887
  • 博客等级: 准尉
  • 技术积分: 1883
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-05 21:10
个人简介

RHCE,CCNA,熟悉shell脚本

文章分类

全部博文(120)

文章存档

2015年(16)

2014年(20)

2013年(48)

2012年(20)

2011年(16)

分类: 系统运维

2014-10-22 08:39:37

conf/nginx.conf
nginx location = A    ------精准匹配
        location A   ----------正则匹配

配置location = A后,先匹配精准,匹配不到跳转到正则匹配

location = A             ---(建议定位到文件,locatin = /a.txt)
root /var/www/html
index  index.htm

location A
root /usr/local/html
index index.html

先匹配精准下的 index.htm,如果匹配不到,就匹配正则,然后再找index.htm
阅读(604) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~