Apache LocationMatch无法正常工作

时间:2015-08-13 13:13:46

标签: regex apache locationmatch

我在<VitrualHost/>指令中有以下指令:

<LocationMatch "api/.*">
.....
</LocationMatch>

我正在尝试使用以下网址点击我的服务器:

http://localhost/blah/api/blah?....

我的<LocationMatch>指令内的内容并不匹配。也许我不明白<LocationMatch>实际上是如何运作的。我希望这会查看网址,并将其与""的{​​{1}}内的内容进行比较。

编辑:

当我用../ api /

结束URL时,奇怪的是这些匹配

0 个答案:

没有答案