title: fastcgi_mono_server 4 wildcard hostname
body: <p>I have configured nginx with fastcgi_mono_server4.
  In my nginx config I have 2 hostnames : </p>
  
  <pre><code>server {
      listen       80;
      server_name  dev.example.org
      location / {
               root /var/www/dev.example.org/;
               fastcgi_index Default.aspx;
               fastcgi_pass 127.0.0.1:9001;
               include /etc/nginx/fastcgi_params;
          }
  }
  
   server {
          listen       80;
          server_name  *.example.org
          location / {
               root /var/www/example.org/;
               fastcgi_index Default.aspx;
               fastcgi_pass 127.0.0.1:9000;
               include /etc/nginx/fastcgi_params;
          }
      }
  </code></pre>
  
  <p>nginx is OK with this configuration. dev goes to one and all other to another one .</p>
  
  <p>I've already tried this :</p>
  
  <pre><code>fastcgi-mono-server4 /applications=*.example.org:/:/var/www/example.org/ /socket=tcp:127.0.0.1:9000
  </code></pre>
  
  <p>but it throws an error (Uri parse exception)</p>
  
  <p><strong>Update :</strong>
  I need to get the full host name in my application, for example if the request was abc.example.org, I need to get "abc".
  Unfortunately, HttpContext.Current.Request.Url does not contains "abc" but "*" which causes the parse error</p>