Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How does the cPanel "add on domain" feature, which allows to host multiple top level domains (TLDs) on a single server, work under the hood?

share|improve this question

closed as off-topic by HopelessN00b Jan 13 '15 at 22:11

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

To clarify, a top level domain is something like com or org; you aren't hosting those ;) – Shane Madden Sep 1 '11 at 14:49
This question appears to be off-topic because it is about working with a service provider's management interface, such as cPanel. – HopelessN00b Jan 13 '15 at 22:11
up vote 0 down vote accepted

It uses Apache's virtual hosting support, see for documentation.

When you add a new add-on domain it adds a vhost entry to the Apache configuration file(s) for that domain, with the DocumentRoot and ServerName properties set accordingly.

There is more work involved for HTTPS support as (unless you can guarantee all connecting client applications support SNI, which any version of Internet Explorer on Windows XP does not) you need to ensure that the domain is served on a particular IP address rather than being able to specify *:443 as the listening location.

share|improve this answer

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