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, so 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: server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)

I don’t normally configure hostname as

The norm is (e.g. and access would be

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, 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 and not my

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

My hostname is not, its my vps name. ( 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

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.