Website not available (got error 502)

3 posts / 0 new
Last post
#1 Wed, 07/24/2019 - 11:09
Zahiouninette

Website not available (got error 502)

My website isn't available either with http nor https.

It doesn't seem like it is a DNS problem as I can access webmin from mydomain.com:10000, so mydomain.com is correctly resolved to my server. My site is correctly displayed from webmin preview option.

I checked Website Troubleshooting but nothing worked.

Here is my access log :

x.x.x.x - - [24/Jul/2019:12:29:12 +0200] "GET / HTTP/1.0" 200 2155 "-" "Webmin"
x.x.x.x - - [24/Jul/2019:12:29:13 +0200] "GET /style.css HTTP/1.0" 200 819 "-" "Webmin"

And my error log :

[Wed Jul 24 06:25:06.638059 2019] [ssl:warn] [pid 1477] AH01906: mydomain.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
Wed, 07/24/2019 - 14:09
adamjedgar

I don't normally configure hostname as mydomain.com.

The norm is host.fqdn.com (e.g. server1.mydomain.com) and access would be server1.mydomain.com:10000

Just because your main host resolves does not mean dns is working for all virtual servers (websites) on it.

A few things to consider

  1. What method of the hosting are you using? "A records" at the various domain registrars you are hosting websites for (add the server ipaddress for each virtual server on your system)

  2. Or Bind dns on your system using your own nameservers (you are hosting the dns for all virtual servers on your system) Option 1 above is far easier and less problematic.

  3. Have you setup any virtual servers yet? The primary hostname, in your case it appears that is my domain.com, should not be the website...you need to add a virtual server with a different name to the host (hence the reason why hostname is usually different ie host.fqdn.com and not my domain.com)

  4. Have you waited long enough for the dns to propogate

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Thu, 07/25/2019 - 04:20 (Reply to #2)
Zahiouninette

My hostname is not mydomain.com, its my vps name. (myvpsname.provider.com).

mydomain.com is the first virtual server I have setup, and it has a A record to my ip address. (I suppose that's why I can access webmin via mydomain.com:10000).

My DNS is recorded on my registrar panel and I have disabled Bind DNS. I use my provider nameservers. The last change I made on my dns was more than 2 days ago so I think I waited long enough.

Topic locked