Configuring add-on domains

I have tried Googling this but I’m afraid I don’t understand the next step ie how to set things up so that when someone enters in their server they will get my site.

I have a domain name (lets call it that I got with another company that I use to “point to” web space on a server with yet another company. I have an index.php page on So what do I need to do, where, to get it so that opens that page? I still want to access the other content on this server.

I hope I have explained things OK. I have some understanding of html and php and things but know very little about domains and nameservers and DNS and so on.

Thank you.

Unfortunately quite involved and do not know how your server is managed :frowning:

For my VPS Linux webhosting…

Freenom has a domain setting which needs two or three settings changed to point your domain to my server hosting.


ON my VPS I have to setup a config file


The conf file has servings for domain name, directory location, error log file name, etc

Command Box prompt :slight_smile:

systemctl restart apache2

Create the directory set in the conf file:


Apache2 needs installing:

sudo apt install apache2
systemctl restart Apache2

Php and MySQL may need installing…

1 Like

Mine is managed via cPanel.

Freenom needs the domains pointing at your server hosting:

Freenom → Services → Manage Domains → Management Tools → Nameservers
Select → Change Nameservers

That shuld take upto about 48 hours to propagate:

Mine is nearly finished propagating:

I believe CPANEL is a lot easier to set your domain on your server, i Have forgotten how to use it since it was over ten years since last used.

1 Like

I have changed the name servers as described - thank you. So when that finishes propagating does that mean that will open the index.html in the public_html folder of my server? I am a little confused because I already have another domain pointing there ( How will I get to open one page but to open another?

(thank you for giving me the confidence to persist with this).

That depends on the server. You need to refer to the documentation provided by the server.

1 Like

Thank you.

For the benefit of anyone else finding this in the future what I needed to do was to add an “addon domain”.

Unfortunately I only get to have two of those on the cheap package I am currently using.

Does CPanel and/or your web hosting allow for subdomains Wiki?

Remember that is an entirely separate domain from and each can point to different webpage contents!

Also to consider is that Tiny or Short URLs Wiki not only shorten long URLs but also obfuscate SEO pages!


I forgot to mention the dynamic webpage content search.

Yes, I am allowed an infinite number of subdomains. But I don’t think you can map them (or whatever the correct term is) to a domain. They have to take the form

I didn’t know that. In fact I am now even more confused. Both and open the same page.

I don’t think so. I have never seen any ability to register a www subdomain separately. and are the same domain names. You can say they are separate applications, websites, computers or IP addresses but not separate domains.

With Ubuntu Linux the domain name and directory are set in a configuration file and usually the www subdomain is set as an alias:

Configuration file:


<VirtualHost *:80>
  DocumentRoot /var/www/
 <Directory /var/www/>
   Options +FollowSymlinks

  # Error Logging	
		LogLevel warn
		ErrorLog ${APACHE_LOG_DIR}/error-this-is-a-test.log
		CustomLog ${APACHE_LOG_DIR}/access.log combined

The domain is activated by the Command


As you can see the alias could be omitted and a separate www domain configured. I cannot think of why this option could be useful, far better to have a subdomain with a meaningful name?

1 Like

I am saying that it is not possible to register (have separate owners) separately from is the domain name and is a subdomain of it. When the Domain Name Service (DNS) resolves it uses the same registration configuration (file) as it does for Within that registration configuration there can be a different IP address for subdomains.

I’ve had a chance to test and set the following two separate domains:

Also to be noted:

I think the Domain Name Service (DNS) never ever resolves because it is prefixed with www. which makes it a subdomain of

The Domain Name Service (DNS) only ever registers the main domain name. The domain name and every subdomain all propagate to the same URI ( Apache2 receives the relevant URL and redirects to the relevant $_SESSION[‘DOCUMENT_ROOT’] which must have been been previously added and activated, etc to the /etc/apache2/sites-available/ directory.

Today’s Ponderism

What can I do with the completely separate www. domain? A-B Testing?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.