4 messages in ru.sysoev.nginxRe: Where is third level of domain gone
FromSent OnAttachments
fei dongJun 17, 2009 12:33 am 
Maxim DouninJun 17, 2009 1:57 am 
Igor SysoevJun 17, 2009 3:10 am 
fei dongJun 17, 2009 9:04 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Where is third level of domain goneActions...
From:fei dong (dong@gmail.com)
Date:Jun 17, 2009 9:04:00 pm
List:ru.sysoev.nginx

You are right, Thanks!

On Wed, Jun 17, 2009 at 4:58 PM, Maxim Dounin <mdou@mdounin.ru> wrote:

Hello!

On Wed, Jun 17, 2009 at 03:33:52PM +0800, fei dong wrote:

Hello,

I am using Nginx 0.7.54 with php 5.2.8 as the web server. When I configure the host name, like: *.music.goog.com, I find a very wield phenonmenon that I can't get the third level of this domain.

I print this variable in php: $_SERVER['SERVER_NAME'] ; it says: music.goog.com

SERVER_NAME is server's name, not Host header from client request. Use HTTP_HOST instead.