Welcome! Log In Create A New Profile

Advanced

Re: Nginx server_name command being ignored

Francis Daly
December 15, 2012 06:08AM
On Fri, Dec 14, 2012 at 06:54:58PM -0500, constable1 wrote:

Hi there,

> I also tried "curl -i http://test/" and I get the
> output as the code that makes up the html of my page, so it appears that
> nginx is working fine, but when I try going to http://test/ on another
> machine on my home network then I get nothing,

Exactly the same as the last time:

What is the output of

curl -i http://test/

? Do that from whatever machine you want things to work from. The output
is unlikely to be "nothing", and is likely to give an indication of the
first problem.

And 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/

where "127.0.0.1" should be replaced with "an ip address that the nginx
server is listening on".

Note that 127.0.0.1 is a special address which means (roughly) "this
machine only". And so is unlikely to work from any other machine.

The server{} block that has "server_name test" would need to "listen"
on a non-127.0.0.1 address for it to be accessible

> I agree that this must be
> some kind of DNS issue here, but how does one go about fixing it?

"Big" fix is "whatever your network does". "Small" fix is /etc/hosts.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx server_name command being ignored

constable1 December 14, 2012 08:01AM

Re: Nginx server_name command being ignored

Antonio P.P. Almeida December 14, 2012 08:10AM

Re: Nginx server_name command being ignored

Jonathan Matthews December 14, 2012 08:10AM

Re: Nginx server_name command being ignored

constable1 December 14, 2012 08:12AM

Re: Nginx server_name command being ignored

Jonathan Matthews December 14, 2012 08:20AM

Re: Nginx server_name command being ignored

constable1 December 14, 2012 06:54PM

Re: Nginx server_name command being ignored

Jonathan Matthews December 14, 2012 07:24PM

Re: Nginx server_name command being ignored

constable1 December 14, 2012 08:20PM

Re: Nginx server_name command being ignored

Francis Daly December 15, 2012 06:08AM

Re: Nginx server_name command being ignored

constable1 December 15, 2012 06:32AM

Re: Nginx server_name command being ignored

Francis Daly December 15, 2012 06:48AM

Re: Nginx server_name command being ignored

constable1 December 15, 2012 07:01AM

Re: Nginx server_name command being ignored

Francis Daly December 15, 2012 09:12AM

Re: Nginx server_name command being ignored

Francis Daly December 14, 2012 08:14AM

Re: Nginx server_name command being ignored

Francis Daly December 14, 2012 08:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 185
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready