You are right, Thanks!<br><br><div class="gmail_quote">On Wed, Jun 17, 2009 at 4:58 PM, Maxim Dounin <span dir="ltr">&lt;<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>&gt;</span> wrote:<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>
<div class="im"><br>
On Wed, Jun 17, 2009 at 03:33:52PM +0800, fei dong wrote:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt; I am using Nginx 0.7.54 with php 5.2.8 as the web server. When I configure<br>
&gt; the host name, like: *.<a href="http://music.goog.com" target="_blank">music.goog.com</a>, I find a very wield phenonmenon that<br>
&gt; I can&#39;t get the third level of this domain.<br>
&gt;<br>
&gt; I print this variable in php:<br>
&gt; $_SERVER[&#39;SERVER_NAME&#39;] ; it says: <a href="http://music.goog.com" target="_blank">music.goog.com</a><br>
<br>
</div>SERVER_NAME is server&#39;s name, not Host header from client request.<br>
Use HTTP_HOST instead.<br>
<font color="#888888"><br>
Maxim Dounin<br>
<br>
</font></blockquote></div><br>