weird behaviour on missing subdomain
Hi!
sometimes when I access the subdomain right in time when is created I get an 'another account' website content.
For testing I'm just point a subdomain "directly" to the server without creating a subdomain in it (cloudflare is my dns resolver, so I point test.domain.com to my server IP), but instead of get an empty document (or even an error or a missing register), it's shows the content from one specific website from another account (i.e. anotherdomain.com, yes it's start with an A so maybe that is why it's load first?).
Anyone got an Idea about this and how to fix it?
Thanks!
-
If the subdomain is just being created at the time, the VHOST likely isn't in Apache yet (or missing if you haven't created it yet). Based on your screenshot your are on HTTPS so likely you are see the VHOST that contains the shared/default SSL VHOST for the server/IP that you've pointed to. 0 -
@bellwood is on the right track, if there is no SSL VirtualHost for that domain it will load the first VirtualHost in the apache configuration assigned to that IP address by default. 0
Please sign in to leave a comment.
Comments
2 comments