2

Ok so I have a linux hybrid server running WHM/cPanel. I have the slight problem that when someone points their domain at our server, if there is no hosting package set up yet it defaults to the first hosting package it finds. Which is a site that begins with "a".

For example, a customer just bought a new domain name, we hadn't parked it on the hosting yet but they pointed it at our server. So it started loading a site that wasn't theirs that is the first hosting package alphabetically on the server that starts with "a".

I am not sure if this is specifically something Apache related, WHM related or what. Any pointers?

  • ...if there is no hosting package set up yet it defaults to the first hosting package... Yes. That is exactly what web servers do with a request they do not recognize, they display the first site created. – closetnoc Feb 14 '17 at 16:26
  • Maybe you can create a hosting package aaaaaaaaaaaaa.com and put a holding page. But I am not sure if it has to be a resolvable domain that it displays or just something that is set up on the server...closetnoc? – Steve Feb 15 '17 at 6:56
  • Thanks guys. Yes I get that it displays the first site created and why. Was looking for more of a solution to stop it doing that or going to a holding page as @Steve mentioned. – caffeinehigh Feb 15 '17 at 9:27
  • I'll add that as an answer, if it works you can accept – Steve Feb 15 '17 at 11:51
1

If it displays the first hosting package on your server, maybe you can create a hosting package for a fictitious domain aaaaaaaaaaaaa.com and create what you wand as a holding page in the web space.

But I am not sure if it has to be a resolvable domain that it displays or just something that is set up on the server. Let us know, we'll learn something too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.