litespeedtech / litespeedtech/openlitespeed

Multilevel Subdomain Wildcard Matching

Open
#201 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

to-check
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.