title: Use wildcards in Symfony routing configuration for subdomain and tld
body: <p>I tried to setup the Symfony routing. I'm using Symfony 2.7. I have two bundles that work under a different subdomain. The domainname can be an wild card and the tld can be multiple.</p>
  
  <p>Here is my current config file:</p>
  
  <pre><code>company_api:
  resource: "@ApiBundle/Controller/"
  type:     annotation
  prefix:   /
  
  company_core:
  resource: "@CoreBundle/Controller/"
  type:     annotation
  prefix:   /
  </code></pre>
  
  <p>I want that the first bundle only works under the subdomain "api", the domain can be an wildcard and for the TLD I want to specify a few like (nl|eu).</p>
  
  <p><strong>edited</strong></p>
  
  <pre><code>company_core:
  resource: "@ApiBundle/Controller/"
  type:     annotation
  prefix:   /
  host:     www.mydomainname.{tld}
  defaults:
      tld: nl
  requirements:
      tld: "nl|eu"
  </code></pre>
  
  <p>I have nog upgarde the config to this setup. And the tld works correct. Only would it be possible to have an wildcard for the domain name "mydomainname"? This is easy as the dev and producten server use different doamain names. </p>