Welcome! Log In Create A New Profile

Advanced

Re: Default host is being ignored?

B.R.
June 09, 2014 11:02AM
1°) Ensure the config files are all included (starting with main nginx..conf
files, then following all 'include' logic). The 'sites-available' logic is
due to some distributions packaging and is not there in the official nginx
one.
Usually this is OK, but checking cannot hurt. :o)

2°) Ensure your configuration is *loaded*, ie the syntax is correct and
nginx is actually applying it.
- use nginx -t to check the available config does not contain errors
- send SIGHUP to nginx master to reload the configuration (and check logs
for messages regarding it)
.... or use the probably available 'reload' command from your system
management script which does both steps, knowing what you are doing

3°) Ensure the reply you see in your client is the one sent by the server
(ie take care about any intermediate cache).
One way of effectively doing that is monitoring the access.log file (which
exists in the default nginx configuration
http://trac.nginx.org/nginx/browser/nginx/conf/nginx.conf, though
commented).
Another (complementary) way of doing the same is using cURL on the
command-line, querying your server on the right interface

If you are still experiencing difficulties, please provide details about
your problem and your attempts (and their result aswell) to solve it.
---
*B. R.*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Default host is being ignored?

nrahl June 08, 2014 01:50PM

Re: Default host is being ignored?

B.R. June 09, 2014 11:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
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