开发者

apache2 and <LocationMatch> with negative regular expression

I have a question.

<LocationMatch "^/([^/]+)/login">
   ...
</LocationMatch>

Now I need to delete from the LocationMatch specific path.

for example:

/ProjectTrue1/login - it is need

/ProjectTrue1/login - it is need

/ProjectFalse1/login - it is not need

Sorry for the 开发者_StackOverflow中文版my bad English and my bad explanation.


LocationMatch "^/(?!(ProjectFalse1|ProjectFalse2|...)[^/]+/login

unclear if you meant for there to a pattern for the non-matching projects.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜