#Pointed domain to VPS IP & changed both name servers but website is still reporting bad gateway?

1 messages · Page 1 of 1 (latest)

quasi goblet
#

Is there a reason my site is reporting the bad gateway 502 error? SSL and browser is fine. Could this be due to the fact that I just created this domain about 6 hours ago? domain is korycommunications.com

real yoke
# quasi goblet Is there a reason my site is reporting the bad gateway 502 error? SSL and browse...

Is there a reason my site is reporting the bad gateway 502 error?
There is definitely a reason
Could this be due to the fact that I just created this domain about 6 hours ago?
That wouldn't be it

You can check out the community quick fix tips here:
https://community.cloudflare.com/t/community-tip-fixing-error-502-504-bad-gateway/44008
Otherwise I would ask: Are you using a reverse proxy such as nginx or apache, or CF Tunnels? Most likely that error is coming from that service and Cloudflare just proxies it/brands those pages nicely. You could disable proxy to eliminate Cloudflare being the issue if you think they are.

quasi goblet
#

yeha I tried disabling proxies from cloud flare for both dms records

#

dns

#

wait could it be because i got a reverse proxy going for hostinger??

#

I have a vps in hostinger

#

in the cloud panel it says add site and it gives multiple options one of which is a reverse proxy

#

and my domain is linked to it

#

I thought a reverse proxy was necessary though

quasi goblet
#

i'll try disabling the hostinger RP

#

Are you using a reverse proxy such as nginx or apache, or CF Tunnels?
just saw that my vps also has a nginx reverse proxy

#

so I basically have 2 RP's

real yoke
real yoke
quasi goblet
#

I read a few other posts and some people had the 502 because they had HTTPS always on enabled

real yoke
#

it's probably necessary if you're using it with php for a wordpress site or something

quasi goblet
#

I tried disabling that and it didn't fix it either just gave more problems

real yoke
quasi goblet
#

i'm basically trying to integrate a platform

#

this is what I mean

#

I had RP selected

quasi goblet
#

I could've sworn last time I checked it said SSL was good

#

wait wth lol

#

so it was the server the entire time

real yoke
#

You might have been looking at CF's SSL. Want to make sure your SSL/TLS Mode (under SSL/TLS -> Overview) is Full (Strict) as well, otherwise Cf is connecting insecurely

quasi goblet
#

yeah that's probably what I was seeing sorry dude

#

quick question though I heard from a few posts that SSL/TLS mode full isn't always good since it might cause issues. is this true?

#

that's why I only had it on Full

real yoke
real yoke
quasi goblet
#

that makes sense actually yeah

#

there's no option for it in the cloud panel

#

wouldn't the full strict mode suffice since it would check if the origin server has a valid cert?

real yoke
#

I'm sure you can somewhere though, just gotta find it. CF under SSL -> Origin Certs will give you an cert for your origin (only trusted by Cloudflare) which lasts up to 15 years. Again though, only works with proxy enabled/trusted by CF

quasi goblet
#

but it ended up working you can see it for yourself

#

thank you so much dude

#

I swear I thought this issue was about my vps being down or something lol

#

🙏