litespeedtech / litespeedtech/openlitespeed
Multilevel Subdomain Wildcard Matching
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.5k
- Forks
- 233
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 5
Description
I have a complex subdomain setup that is necessary to support a legacy application, and it involves the use of multilevel subdomains (i.e. https://mycommunity.registration.mynotforprofit.com). For my VHost mapping I mapped the virtual host to the "`*`.registration.mynotforprofit.com" wildcard however OLS does not recognize it properly and it falls through to domain "*.mynotforprofit.com".
Matching on a single level subdomain (i.e. *.mydomain.com) works as is expected, and I had the same setup running on Apache.
If I manually enter the "mycommunity.registration.mynotforprofit.com" into the domain map it works just fine, and the VHost loads as expected. Is multilevel subdomain wildcard support not included or is this a regex bug?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Reproduce the reported mapping with `*.registration.mynotforprofit.com` alongside `*.mynotforprofit.com`, then trace the virtual-host/domain-map wildcard matching behavior and compare it with an explicit hostname mapping. Done means the multilevel wildcard selects the expected virtual host, or the supported behavior and limitation are clearly established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100