Getting error 521 stating web server is down; it's definitely not.
If I edit my hosts file to point to my server's IP address when I type the hostname, it loads just fine. Worked for about an hour earlier when I first enabled CloudFlare, before ceasing to work and giving that error.
I am using a Docker application that runs a web server on port 9000, and then a nginx reverse proxy with LetsEncrypt certificate to enable the https:// page. SSL settings in CloudFlare are set to Flexible. Can anybody assist? I just created an account and am trying to get the CDN function to work
53 Replies
If you are the owner of this website: Contact your hosting provider letting them know your web server is not responding.lol. I am the host, it's my VPS and I configured it all myself. I am going to set it back to "DNS only" for now since it renders my site completely useless to my visitors, any help would be appreciated
no response is no response. your server is not responding to the cloudflare proxy.
I configured it all by myselfthen you should know how to fix it as well
What port(s) does the proxy listen on? It responds to me if I turn off CloudFlare proxy.
And no, I clearly don't know how to fix it or I wouldn't be asking for help. I'm just saying CloudFlare's comment about "ask your host" doesn't help because I AM the host.
Cloudflare Docs
Network ports · Cloudflare Fundamentals docs
Learn which network ports Cloudflare proxies by default and how to enable Cloudflare’s proxy for additional ports.
my server is using 443
let me paste the nginx reverse proxy config
http on port 80, https on port 443
it might help to look at logs of your reverse proxy or docker container...
hm
or run a trace from your cloudflare dashboard
wait, how do I do that
I'm literally new to this whole thing, just signed up yesterday
the HTTP is running on port 9000, not 80. But the reverse proxy makes it HTTPS on 443
which should be fine?
this is ok if your server responds to https traffic
yes
that's why I'm confused at the 521 error
like it works fine if I turn the proxy off and use it as straight DNS
time to start debugging
make sure you are not being served a cached response
🤔
So here is my nginx config
No idea why that says 88, it works on 443
but it's literally just doing proxy_pass from 9000