Welcome! Log In Create A New Profile

Advanced

Re: Getting started

Francis Daly
December 12, 2019 12:04PM
On Thu, Dec 12, 2019 at 04:52:25PM +0000, James Read wrote:
> On Thu, Dec 12, 2019 at 4:42 PM Francis Daly <francis@daoine.org> wrote:

Hi there,

> > If not, "nginx -V" should show the "configure arguments", which will
> > show any --conf-path or --prefix that will indicate the default config
> > file that nginx will use, if it is not the default-default.
>
> nginx version: nginx/1.16.1 (Ubuntu)
> built with OpenSSL 1.1.1c 28 May 2019
> TLS SNI support enabled
> configure arguments: --with-cc-opt='-g -O2

> --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log
> --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock

> This is the config file that I edited /etc/nginx/nginx.conf

That looks correct to me, thanks.

When you do the "reload", do you get anything new at the end of the
error_log file, probably /var/log/nginx/error.log?

If, for example, there is a config file error, then "reload" will not
actually use the new file, and there should be something saying why.


If that shows no problems, then something like

nginx -T | grep 'server\|listen'

should show the "server" blocks, "listen" directives, and "server_name"
configurations that nginx will use.

If you consider any of the information there private -- names, or
public IP addresses, for example -- feel free to edit them; but please
do so consistently, so that any patterns remain visible.

That configuration fragment may make it possible to learn which server{}
nginx uses to handle your test request.

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Getting started

James Read December 10, 2019 06:52PM

Re: Getting started

Francis Daly December 11, 2019 03:32PM

Re: Getting started

James Read December 11, 2019 03:56PM

Re: Getting started

Francis Daly December 12, 2019 11:26AM

Re: Getting started

James Read December 12, 2019 11:36AM

Re: Getting started

Francis Daly December 12, 2019 11:44AM

Re: Getting started

James Read December 12, 2019 11:54AM

Re: Getting started

Francis Daly December 12, 2019 12:04PM

Re: Getting started

James Read December 12, 2019 01:18PM

Re: Getting started

Francis Daly December 13, 2019 08:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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