It would be nice to be able to specify multiple additional (local) hostnames in configuration
which should be used for routing to the correct dev instance and used for the web server configuration (in case the web server does not accept arbitrary hostnames)
That is useful for applications that can deal with multiple host names in one instance (like TYPO3). It is a fairly common occurrence in TYPO3. For Drupal developers, this is akin to a domain access approach (one codebase, one database, multiple hostnames). Additionally, subdomains can be used for a multi-lingual approach.
Related to #570 (or at least surfaced during the testing of the upstream issue).
Related to #416, which is a much much larger issue.
This is also useful for Drupal in domain access or multi-lingual configuration. I believe the same is true for WordPress.
There are several areas that would be impacted by this as well as different solutions. Currently, we're still reliant on /etc/hosts entries versus a dnsmasq solution.
Areas impacted:
Implementation Options:
Just noting that this was a request from @tmotyl as well.
Pulling in @rfay to assist with the definition for acceptance criteria. I would stub this out as an entry in config.yml with the expectation that it would handle the /etc/host changes and accurately show up in ddev list/describe/start output.
Being more explicit:
Potential issues are a few. Currently, our ddev list command assumes a single HTTP/HTTPS pair and the list might become a bit hard to read. I'm assuming we'll run into a few more trouble spots as soon as we start digging. Also, the ddev-ui integration
These ACs sound pretty solid.
In the future, does it make sense to wrap some of this work in a command? ddev hostname (add|remove) [whatever] or the like? Or more generally, if we had some command that could change attributes on an app or something - ddev [whatever] php_version 7.1 or ddev [whatever] containers add solr or something like that? Probably outside the scope of this one - this issue would be a prerequisite to some kind of wrapper command anyway.
@cweagans Let's consider that outside the scope of this issue. What you're describing could be something that extends ddev config either by setting a flag when running config or altering an attribute. I'm a little hesitant on doing this just yet because it is probably a bit of engineering effort and there are some bigger, more pressing rocks to move in the next 1-3 months. That said, happy to split out an issue to track this!
Updated assignee. I'll get the issue description updated with the motivation/AC and the labels updated. Also, I'll add the motivation and prioritization/milestone.
Key things to note:
At least it is important to have the possibility to have multiple hostnames for one TYPO3 installation.
For the project _mysite1_ I get for default the domain _mysite1.ddev.local_.
With the new config feature I can add _mysite2.ddev.local_ and _mysite3.ddev.local_? Right?
Or I can add _subdomain1.mysite1.ddev.local_ and _subdomain2.mysite1.ddev.local_?
Both would be nice. But If the last one is a problem for some reason, I you can do like this:
_subdomain1-mysite1.ddev.local_ or _subdomain2-mysite1.ddev.local_ with a minus instead of a dot
TYPO3 uses only ONE database for multisite, that's correct.
Very cool! Thanks a bunch for this feature!
Most helpful comment
This is also useful for Drupal in domain access or multi-lingual configuration. I believe the same is true for WordPress.
There are several areas that would be impacted by this as well as different solutions. Currently, we're still reliant on /etc/hosts entries versus a dnsmasq solution.
Areas impacted:
Implementation Options: