On Wed, Nov 23, 2011 at 05:30:46AM -0500, token wrote:
Hello, I would like to know if this is correct
Will NGINX allways return the first of the provided hostname name in
from the server_name as beign the “SERVER_NAME”,
eg server_name hostname1 hostname2;
The $server_name variable is always first name as defined by the
“server_name” directive in the server{} in question.
With default fastcgi_params as shipped with nginx, SERVER_NAME as
passed to php via fastcgi will be set to $server_name, i.e. first
name defined with the “server_name” directive.
I see as expected SERVER_NAME and HTTP_HOST
// PHP APPLICATION --------------
again the SERVER_NAME and HTTP_HOST as i would expect
Thank you for clearing this up. Thanks Again Maxim!
Hello!
On Wed, Nov 23, 2011 at 05:30:46AM -0500, token wrote:
Hello, I would like to know if this is correct
Will NGINX allways return the first of the provided hostname name in
from the server_name as beign the “SERVER_NAME”,
eg server_name hostname1 hostname2;
The $server_name variable is always first name as defined by the
“server_name” directive in the server{} in question.
With default fastcgi_params as shipped with nginx, SERVER_NAME as
passed to php via fastcgi will be set to $server_name, i.e. first
name defined with the “server_name” directive.
I see as expected SERVER_NAME and HTTP_HOST
// PHP APPLICATION --------------
again the SERVER_NAME and HTTP_HOST as i would expect