staging.inyokaproject.org

Nginx Verbindung abgelehnt

Status: Gelöst | Ubuntu-Version: Ubuntu 21.10 (Impish Indri)
Antworten |

caiusjuliuscaesar

Anmeldungsdatum:
20. Januar 2009

Beiträge: 307

Mein Nginx lehnt offensichtlich Verbindungen ab: Rufe ich den Server unter seiner IP im Browser auf, kommt:

1
2
Die Website ist nicht erreichbar
192.168.0.100 hat die Verbindung abgelehnt.

Die Config lautet:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ cat /etc/nginx/conf.d/wp.conf
server {
        listen 80;
        listen [::]:80;
        root /var/www/html/;
        index  index.php index.html index.htm;
        server_name  127.0.0.1;

        error_log /var/log/nginx/mysite.com_error.log;
        access_log /var/log/nginx/mysite.com_access.log;

        client_max_body_size 1000M;
        location / {
                root /var/www/html;
                try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php8.0-fpm.sock;
                fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }
}

Der Server läßt sich fehlerlos starten:

1
2
3
sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Kann man hieran irgendetwas erkennen? Wo könnte ich nach weiteren Fehlern suchen?

Gruß, CJC

caiusjuliuscaesar

(Themenstarter)

Anmeldungsdatum:
20. Januar 2009

Beiträge: 307

War ein lokales Problem im Chrome. Nach dem Leeren des Caches ging es.

Antworten |