I’ve created a subdomain using “Add a Subdomain” in Siteworx, but if you visit sub.domain.com, it won’t load. Instead, it will load when you visit it as a subdirectory i.e. domain.com/sub. Do you guys have any idea what went wrong? I didn’t touch any conf files or whatsoever. This is a newly set up server which I am still importing my cPanel accounts.
Many thanks, and sorry I don’t think I’m clear over my reply
If you ping the subdomain, does it resolve correctly to the IP address
If it states not found, it’s DNS population in your broadband connection DNS or you could try flushing your DNS cache
If it resolves correctly to the IP address then it’s something else, and if so, do you see forbidden 403 when trying to reference subdomain in a browser
If you want to pm the domain and subdomain, I could run a check from here and let you know
Many thanks, and sorry I’m not explaining very well
I did not mean on the server DNS
I was meaning the Internet connection used by shyuan to reference the subdomain The Internet provider DNS is not fully live DNS but cached DNS once a request is made. So if the request was made too soon before populated, it will cache the null response until cache cleared or updated, just as a PC DNS cache would.
Another way to overcome this, would be to set your PC DNS servers say to google.
I hope this makes more sense
On another point, any chance you could update your centos 7 post with how you got on.
It seems a mere restart of the service fixed the issue. And you were right I was on CentOS 7. But i do wonder is it a bug or is it a must to do that every time I add a subdomain? Appreciate your time to explain if you know
I’ve had several clients that had problems with Google DNS servers not updating and being cached as recently as a month ago. Don’t know why and I was surprised. I figured if Shyuan changed the hosts file on his PC, he would know if things were working properly by if it came up correctly as sub.domain.com/index.html. If it didn’t, then I’d assume the issue would be with his server.
Sorry, I’m not sure, what are you asking on teh CentOS 7 post on how I got on? I can be dense at times!
Right now, you restart the service every time you add a domain or subdomain. It’s not supposed to work this way, it’s a bug. But John should be able to confirm this.
Yes, it’s a known bug in centos 7, which their working on. It’s in the code for service restart which is different in centos 7, but you cannot just add it in, as one exists and this stops it I think.
Sorry Kent, my mistake, I did not think you meant shyuan PC, rather host on server sorry, so we were both thinking same.
Your update was for the centos 7 you were going to play with over the weekend, I think you posted on mikes post
Glad it’s resolved though, and hopefully should be fully working soon on centos 7.
I’m good at thinking other people can read my mind. You must have a memory like a steel trap in remembering me from another post.
As a matter of fact, I’m going down to the data center tomorrow evening to install CentOS on a server. I then plan on setting it up with Interworx no later than this weekend. Once all is installed and updated, I’m going to put on a few websites to see if everything works okay. I’m okay with having to restart the service or services via command line or Interworx, it’s just a minor annoyance. Hopefully all will go well.