Allows multiple domain names to be used for a single site when the APP_SITE_URL environment var is not set. This change is backwards compatible.
Example use case 1: the client wants to use an internal DNS record to point theirname.theirdomain.com to the same installation as our ourname.oneis.us site. Instead of having two separate installs, we can just have Craft dynamically adjust to the requested hostname.
Example use case 2: in development, you can leave off the APP_SITE_URL entirely and hit the site at any domain/port you have configured with your local web server.
Allows multiple domain names to be used for a single site when the APP_SITE_URL environment var is not set. This change is backwards compatible.
Example use case 1: the client wants to use an internal DNS record to point
theirname.theirdomain.com
to the same installation as ourourname.oneis.us
site. Instead of having two separate installs, we can just have Craft dynamically adjust to the requested hostname.Example use case 2: in development, you can leave off the APP_SITE_URL entirely and hit the site at any domain/port you have configured with your local web server.