Nginx server_name command being ignored
Francis Daly
francis at daoine.org
Fri Dec 14 13:32:21 UTC 2012
On Fri, Dec 14, 2012 at 01:13:44PM +0000, Francis Daly wrote:
> On Fri, Dec 14, 2012 at 08:01:33AM -0500, constable1 wrote:
Hi there,
> What is the output of
>
> curl -i http://test/
>
> ?
>
> My guess is that your browser fails to resolve the name to the correct
> address, and so never talks to nginx in the first place.
Oh, if that is the case, then you can still test the nginx side without
fixing name resolution by looking at the output of
curl -i -H Host:test http://127.0.0.1/
and confirming that it is what you expect.
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list