weird behaviour on missing subdomain

Operating System & Version
CLOUDLINUX 7.8
cPanel & WHM Version
88.0.11

BredeBS

Member
Jun 24, 2020
8
0
1
Chile
cPanel Access Level
Root Administrator
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!
 

Attachments

bellwood

Well-Known Member
PartnerNOC
Sep 25, 2012
92
43
143
New York
cPanel Access Level
DataCenter Provider
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.
 
  • Like
Reactions: cPanelLauren

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
@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.