WildcardSubdomainmethods of an
iris.Applicationto register subdomains.
Subdomainmethod returns a new
Partywhich is responsible to register routes to this specific "subdomain".
Partyis that if called from a child party then the subdomain will be prepended to the path instead of appended. So if
app.Subdomain("admin").Subdomain("panel")then the result is:
WildcardSubdomainmethod returns a new
Partywhich is responsible to register routes to a dynamic, wildcard(ed) subdomain. A dynamic subdomain is a subdomain which can handle any subdomain requests. Server will accept any subdomain (if not static subdomain found) and it will search and execute the handlers of this
C:\Windows\System32\Drivers\etc\hostsfile and append:
Partyyou can also register a subdomain using the alternative method below:
iris.Applicationmethod which allows to register a global redirection rule for subdomains as well.
SubdomainRedirectsets (or adds if used more than one time) a router wrapper which redirects(StatusMovedPermanently) a (sub)domain to another subdomain or to the root domain as fast as possible, before the execution of the route's handler(s).
Contextoffers four main methods when working with subdomains that may be helpful for you.