Learn about Centmin Mod LEMP Stack today
Register Now

Nginx Website stopped loading...

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by dotpro, Aug 10, 2019.

  1. dotpro

    dotpro New Member

    7
    0
    1
    Dec 5, 2017
    Ratings:
    +0
    Local Time:
    11:03 PM
    Hi,

    I've got a domain which expired and after renewing it, the website still doesn't load. Other domains/websites on the server are loading fine.

    I've checked cloudflare and tried to load with and without cloudflare proxy but still the server says: ERR_CONNECTION_REFUSED

    Restarted php, nginx, etc. but that doesn't solve the issue.

    curl -I results

    HTTP/1.1 200 OK
    Date: Sat, 10 Aug 2019 13:56:58 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    Set-Cookie: __cfduid=db28cd5ac4fa526008c6435f66fb91d831565445418; expires=Sun, 09-Aug-20 13:56:58 GMT; path=/; domain=.; HttpOnly; Secure
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-control: private, max-age=0
    Set-Cookie: xf_session=90c08396e39680e4333d09e9465002df; path=/; secure; httponly
    X-Frame-Options: SAMEORIGIN
    X-Xss-Protection: 1
    Last-Modified: Sat, 10 Aug 2019 13:56:58 GMT
    Vary: Accept-Encoding
    X-Powered-By: centminmod
    Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
    X-Content-Type-Options: nosniff
    Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    Server: cloudflare
    CF-RAY: 504279e9db2ac8a3-MIA
     
  2. dotpro

    dotpro New Member

    7
    0
    1
    Dec 5, 2017
    Ratings:
    +0
    Local Time:
    11:03 PM
    well, website started loading, fixed by itself?
     
  3. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    2:03 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    If you use a reverse proxy like Cloudflare, Sucuri, or Incapsula in front of Centmin Mod Nginx, you need to setup nginx realip to be passed onto Nginx and whitelist their IPs. Have you done that ?

    See Getting Started Guide step 5 and setting correct real ip via nginx module config at http://centminmod.com/nginx_configure_cloudflare.html. The tools/csfcf.sh cronjob mentioned below helps maintain the whitelisted CSF Firewall IPs, but you still need to setup nginx realip in your nginx vhost.

    If using Centmin Mod 123.09beta01 and newer, there's an added tools/csfcf.sh script to aid in this. Details at: