Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

502 problem with nginx

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
beamer
Posts: 1
Joined: Fri Apr 15, 2022 7:30 pm

Os: CentOS 6x
Web: apache + nginx
502 problem with nginx
  • Quote

Post by beamer » Fri Apr 15, 2022 7:45 pm

greetings...
My problem is the next
since yesterday once i want to access to my web (is a VPS with cent os7 rn) appears "502 Bad Gateway -nginx"
i tried all, first, i had problems with apache and nginx for crash ports, i change the port of apache from 80 to 81 and the problem with the apache and nginx "solved" by i see in the putty with systemctl, but the problem still when i try to access again in the browser searching for my vps ip adress.

I reset the server in the provider's web, but the error still there.
I try to reinstall os, first i was using ubuntu 18, but reinstall the os CentOs 7 and the problem continue, what i can do? Is problem of vesta?

Today, after reinstall CentOs 7 i tried to connect in the browser with the vps ip but it cannot connect, then after i installed vesta again, the 502 error still there.

Please i need help
p.d. i do not upload any web yet, 'cause i cant do nothing,
p.d.d. i can enter y vesta panel
Top

sandro
Support team
Posts: 87
Joined: Sun Aug 30, 2020 11:02 am

Os: CentOS 6x
Web: apache + nginx
Re: 502 problem with nginx
  • Quote

Post by sandro » Tue Apr 19, 2022 1:04 pm

This is a very strange problem you are experiencing.

It seems that this error has nothing to do with VestaCP as even with a fresh install of CentOS the error 502 persists.

First you need to check if the nginx and httpd services are working:

# systemctl status nginx
# systemctl status httpd

Then you need to check if the ports of these services are open on your server IPs:

# netstat -ntlup | grep 80

nginx works on port 80 and httpd (Apache) works on port 8080 by default on VestaCP.

And finally, check if the http request is arriving at the server. You can do this by looking at the /var/log/httpd/domains log files.
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password