D
D
DarkKefir2019-04-08 01:39:59
Nginx
DarkKefir, 2019-04-08 01:39:59

Nginx error - 111: Connection refused?

Moved to a new server and getting nginx errors:

send() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53

Which is not critical, but clearly unpleasant.

I endured until I tried to install gitea., which I could not do and received the following answer:
connect() failed (111: Connection refused) while connecting to upstream, client: tut.moy.ip.address, server: domain.com, request: "GET /install HTTP/1.1", upstream: "http://127.0.0.1:3000/install", host: "domain.com"


I shoveled Google and a toaster, but everywhere I get an answer - look at the nginx and php-fpm settings.

However, with these settings:
//nginx
upstream php_workers {
    server unix:/run/php/php7.3-fpm.sock;
}

//php-fpm
listen = /run/php/php7.3-fpm.sock


all other sites on ports 80 and 443 work fine.

Also, there are suggestions to specify the necessary IP from the NS server in /etc/resolv.conf, but I have the ones given by the provider.

In the nginx config for SSL is:
resolver 127.0.0.1;

I tried to disable fail2ban and reset the iptables settings - nothing helps.

What to do and where to dig?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Puma Thailand, 2019-04-08
@DarkKefir

And why did you put the resolver on the localhost and did not raise the dns there

M
Mary Solar, 2017-02-09
@MaryT

Sergey Tutukov helped with the answer , I used this carousel https://www.bkosborne.com/jquery-waterwheel-carousel.
Finished it for myself, now everything works.

A
A person from Kazakhstan, 2017-02-02
@LenovoId

will this suit?
efb33f0da73b4a45ae01701566e43416.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question