Multilevel Subdomain Wildcard Matching

62 views
Skip to first unread message

Daniel Resch

unread,
Oct 1, 2020, 11:14:28 AM10/1/20
to OpenLiteSpeed Development
Dear LS Community,
I am trying to setup domain mapping with multiple multilevels of subdomains. The domain scheme is dictated by a legacy application that cannot be changed. For example, we have domains of the form https://mycommunity.registration.mynotforprofit.com. For my VHost mapping, I mapped the virtual host to the wildcard subdomain *.registration.mynotforprofit.com wildcard however OLS does not recognize it properly and it falls through to the subdomain *.mynotforprofit.com. Subdomains of subdomains are considered different (even from the standpoint of SSL) therefore there is an hierarchical issue with regex matching.

Matching on a single level subdomain (i.e. *.mydomain.com) works as is expected, and the same config I had worked on Apache.

If I manually enter the "mycommunity.registration.mynotforprofit.com" subdomain into the domain field it works as expected. Is multilevel subdomain wildcard support not included or is this a regex bug? My initial impression is that this (https://github.com/litespeedtech/openlitespeed/blob/master/src/http/vhostmap.cpp) is the place to look.

Thank you!

Reply all
Reply to author
Forward
0 new messages