title: Symfony2 and hostname problems
body: <p>I can try to map the url the next way:</p>
  
  <p>en.test.example.local | en.example.com</p>
  
  <p>AND</p>
  
  <p>admin.test.example.local | admin.example.com</p>
  
  <p>With admin I don't have any problem working fine but, when I try to begin the uri with a variable the symfony say:
  Malformed inline YAML string ({locale}{enviroment}example.{domain})...</p>
  
  <p>The config is the next:</p>
  
  <pre><code># web urls
  example_web:
    host: {locale}{enviroment}example.{domain}
    requirements: { locale: en , enviroment: .|.\w+., domain: local|com }
    resource: "@ExampleWebBundle/Resources/config/routing.yml"
    prefix: /
  
  # admin urls
  example_admin:
    host: admin{enviroment}example.{domain}
    requirements: { enviroment: .|.\w+., domain: local|com }
    resource: "@ExampleAdminBundle/Resources/config/routing.yml"
    prefix: /
  </code></pre>
  
  <p>If I put this:</p>
  
  <pre><code># web urls
  example_web:
    host: en{enviroment}example.{domain}
    requirements: { locale: en , enviroment: .|.\w+., domain: local|com }
    resource: "@ExampleWebBundle/Resources/config/routing.yml"
    prefix: /
  </code></pre>
  
  <p>working fine, but is a multilanguage application and I need the multilanguage by "subdomain"</p>