how to handle "server_name" in intranet environment
    Bert Douglas 
    bertd at douglascircuitworks.com
       
    Fri Sep  7 03:49:18 MSD 2007
    
    
  
Igor Sysoev <is at ...> writes:
> 
> On Thu, Sep 06, 2007 at 07:27:48PM +0000, Bert Douglas wrote:
 
> > What should I put in for "server_name"?
> > 
> 
> Try
>       server_name  _ *;
> 
> the "_" is stub, and "*" says nginx to use client "Host" header.
>
Sadly, it doesn't seem to work.
Request to http://192.168.x.x/abc
server_name _ *;
location /abc/ {
...
} 
This gets redirected to:
http://_/abc/
Which is a problem.
Client sends "host" header as follows:
Host: 192.168.2.92:8811
So it is not blank.
Thanks again,
Bert Douglas
    
    
More information about the nginx
mailing list