title: nginx err_connection_refused, can anyone help me?
body: <p>got installed my old site with php, mysql and so on, an everything work fine but my site is not reachable from the outside of my LAN. Did a ton of changes and tried at least 100 config for my nginx sites-enabled and php7.4 but nothing helped me out :/. Either i get a 502 or connection refused error. Runing on ubuntu 20.04</p>
  <p>check this default container:</p>
  <pre><code>    server {
      listen 80; 
      root /var/www; 
      index index.html index.php index.htm index.nginx-debian.html;
      server_name localhost;
      location / {
          try_files $uri $uri/ =404;
      }
      
  location ~ [^/]\.php(/|$) {
      fastcgi_split_path_info ^(.+?\.php)(/.*)$;
      #fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
      fastcgi_pass 127.0.0.1:9000;
      include snippets/fastcgi-php.conf;  
          #fastcgi_index index.php;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          include fastcgi_params;
  }
  }
  </code></pre>
  <p>and the php www.conf (tested both):</p>
  <pre><code>...
  ;listen = /var/run/php/php7.4-fpm.sock
  listen = 0.0.0.0:9000
  ...
  </code></pre>
  <p>netstat -lntp:</p>
  <pre><code>    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
  tcp        0      0 0.0.0.0:9000            0.0.0.0:*               LISTEN      9194/php-fpm: maste 
  tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      1086/mysqld         
  tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      9151/nginx: master  
  tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      795/systemd-resolve 
  tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      900/cupsd           
  tcp        0      0 127.0.0.1:9050          0.0.0.0:*               LISTEN      1038/tor            
  tcp6       0      0 :::33060                :::*                    LISTEN      1086/mysqld         
  tcp6       0      0 ::1:631                 :::*                    LISTEN      900/cupsd    
  </code></pre>
  <p>do you guys havy any hints, something that i could missed it?</p>
  <p>best regards and sorry for my bad english</p>