Welcome! Log In Create A New Profile

Advanced

Re: Query on nginx. conf file regarding redirection.

Francis Daly
October 31, 2020 06:58PM
On Sat, Oct 31, 2020 at 06:48:00AM +0530, Kaushal Shriyan wrote:
> On Sat, Oct 31, 2020 at 5:13 AM Francis Daly <francis@daoine.org> wrote:

Hi there,

thanks for the extra information.

> > Something like
> >
> > /usr/local/sbin/nginx -c /etc/nginx.conf -T | grep -e 'server\|listen'
> >
> > where the first three words match whatever your system is doing, will
> > probably be helpful.

> I am sharing the output of cat /etc/nginx/nginx.conf

> > include /etc/nginx/conf.d/*.conf;

That line *might* add lots more config, but...

> #nginx -c /etc/nginx/nginx.conf -T | grep -e 'server\|listen'
> nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
> nginx: configuration file /etc/nginx/nginx.conf test is successful
> # server {
> # listen 80;
> server {
> listen 80;

...that output shows that there is no other config used here.

What error message, if any, do you get when you do

nginx -c /etc/nginx/nginx.conf

? (I suspect it will complain that it can't bind to port 80, because
another nginx is listening there.)

As a test, if you kill any running nginx process, and do

nginx -c /etc/nginx/nginx.conf

what happens if you repeat 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

Query on nginx. conf file regarding redirection.

kaushalshriyan October 29, 2020 02:14PM

Re: Query on nginx. conf file regarding redirection.

Francis Daly October 29, 2020 07:06PM

Re: Query on nginx. conf file regarding redirection.

kaushalshriyan October 30, 2020 01:16PM

Re: Query on nginx. conf file regarding redirection.

Francis Daly October 30, 2020 07:44PM

Re: Query on nginx. conf file regarding redirection.

kaushalshriyan October 30, 2020 09:20PM

Re: Query on nginx. conf file regarding redirection.

Francis Daly October 31, 2020 06:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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