Subdomains and Modules

I've got a situation where I want to point all the requests to any subdomain on the site pointing to a module of the site.

So, basically if the request is - don't use the module and if it is *, use the module

Any ideas how I would go about setting that up ? Would something like this work in Routes.cfm?

<cfset addModuleRoutes(pattern="*", module="SubdomainModule")>

Thanks in advance,
Anuj Gakhar

patterns look at cgi path info by default. If you want it to search something else, then you would need to do a provider function yourself to return what you need parsing.

Luis F. Majano
Ortus Solutions, Corp

ColdBox Platform:
Linked In:
IECFUG Manager: