开发者

apache2 and <LocationMatch> with negative regular expression

开发者 https://www.devze.com 2023-04-12 00:35 出处:网络
I have a question. <LocationMatch \"^/([^/]+)/login\"> ... </LocationMatch> Now I need to delete from the LocationMatch specific path.

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

精彩评论

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