If the HOST header is OK when you do your test, then please try 0.7.51.<br>There is a bug  of server_name issue fixed in 0.7.51<br><br><div class="gmail_quote">2009/4/13 alf <span dir="ltr">&lt;<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello :)<br>
<br>
I have been trying to wrap my head around this, read a lot of docs, but I just cant seem to understand, so if anyone could enlighten me.<br>
<br>
My example:<br>
<br>
I want to set up a default virtual server (vhost) and a spesific vhost.<br>
<br>
1. Does the sequence of these two server blocks in the nginx.conf matter?<br>
<br>
2. I tried something like this:<br>
<br>
server {<br>
  listen 80;<br>
  server_name  <a href="http://mydomain.com" target="_blank">mydomain.com</a>;<br>
  index mydomain.html;<br>
}<br>
<br>
server {<br>
  listen 80 default; <br></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
  server_name  _;<br>
  index default.html;<br>
}<br>
<br>
but now <a href="http://mydomain.com" target="_blank">mydomain.com</a> allways shows default.html. if i remove &quot;default&quot; and put that same (the second) server on the top it all works fine..<br>
<br>
I would really like to know what is really going on here behind the scenes, any info much apresiated.<br>
<br>
alf :)<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,1013,1013#msg-1013" target="_blank">http://forum.nginx.org/read.php?2,1013,1013#msg-1013</a><br>
<br>
<br>
</blockquote></div><br>