You are right, Thanks!<br><br><div class="gmail_quote">On Wed, Jun 17, 2009 at 4:58 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>></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>
> Hello,<br>
><br>
> I am using Nginx 0.7.54 with php 5.2.8 as the web server. When I configure<br>
> the host name, like: *.<a href="http://music.goog.com" target="_blank">music.goog.com</a>, I find a very wield phenonmenon that<br>
> I can't get the third level of this domain.<br>
><br>
> I print this variable in php:<br>
> $_SERVER['SERVER_NAME'] ; it says: <a href="http://music.goog.com" target="_blank">music.goog.com</a><br>
<br>
</div>SERVER_NAME is server'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>