These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Website not available (got error 502) on the new forum.
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 !?)
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
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)
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.
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)
Have you waited long enough for the dns to propogate
https://ajecreative.com.au
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.