Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Domain/DNS Setup for custom system



10:02 am on Jan 14, 2013 (gmt 0)

5+ Year Member


I couldn't find any other category suitable for this to go so thought I'd try here.

I've got an idea which I hope is possible, I've got close but not working completely. I've created a system which needs to be accessed by multiple customers (all seperate). I do not wish to give the files/code away by uploading to their domains, although this would be the easiest setup.

Lets say I've got all the files on my domain (example.com). Customer A wants to access the system using system.customer-a.com and Customer B wants to use intranet.customer-b.com.

I have had a read into DNS CNAMEs and this seems the way to go. After having a play it seems I can point various names to different IP Addresses using an A Record then using a CNAME to that A Record.

I hope I've explained this well enough, I'd be interested to see what suggestions people come up with.

Many thanks


6:23 pm on Jan 18, 2013 (gmt 0)

10+ Year Member

Sounds like a CNAME will do what you need


5:49 pm on Feb 7, 2013 (gmt 0)

5+ Year Member

I have tried getting this setup working but still to no avail. I'm positive there is a way of doing it, the idea seems so simple.

On my domain I have setup a subdomain of app.mydomain.com. I did this using cPanel. cPanel create the associated A records automatically.

In my customers cPanel I have setup a CNAME record of app.customerdomain.com pointing to app.mydomain.com.

This however doesn't work correctly. It is pointing to the right IP address (tested using ping) but I get the cPanel Default Web Page showing.

I'm guessing it's because my domain doesn't know where to point external requests to.

Any ideas?


6:49 pm on Feb 7, 2013 (gmt 0)

10+ Year Member

I think what you have left to do is set up an alias on your side so that it knows what to do with app.customerdomain.com

You can also do a catch all if that is the only thing on that IP address


7:00 pm on Feb 7, 2013 (gmt 0)

5+ Year Member

Can you offer any advice on how to do that when using cPanel?

If I was hosting it myself and had direct access to apache files I'm sure I could do it.


7:31 pm on Feb 7, 2013 (gmt 0)

10+ Year Member

ask the hosting company.


11:13 pm on Feb 7, 2013 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

what paladin said.
you need to be able to configure multiple virtual hosts.

VirtualHost Examples - Apache HTTP Server:
http://httpd.apache.org/docs/current/vhosts/examples.html [httpd.apache.org]


8:54 am on Feb 8, 2013 (gmt 0)

5+ Year Member

Thank you, I've contacted the hosting company. Hopefully they will come back with a positive answer.


2:35 pm on Feb 8, 2013 (gmt 0)

5+ Year Member

It's working now, im really pleased.

I had to add customerdomain.com as a parked domain then create a subdomain of app.customerdomain.com. Pretty straight forward really.

I now need to work out how to access the MySQL database which is on the customers hosting.

Featured Threads

Hot Threads This Week

Hot Threads This Month