I'm trying to use LocationMatch to match an URL in a website's second-level subdomain but not in it's third-level subdomain. This is because I want to password protect some URLs at that level.
eg. level2.domain.com/some/url
should match but not level3.level2.domain.com/some/url
Than I would apply the necessary directives to password protect the URLs.
Does LocationMatch match this part or the URL ? I don't think so, and if that's the case, what could I use to achieve the desired effect ?
我认为您必须将位置分解为单独的VirtualHost
块,并适当使用ServerName
/ ServerAlias
来指定要覆盖的域...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.