homepage Welcome to WebmasterWorld Guest from 54.224.179.98
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque & physics

Webmaster General Forum

    
Domain/DNS Setup for custom system
LinusIT




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

Hi

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

 

paladin




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

Sounds like a CNAME will do what you need

LinusIT




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

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?

paladin




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

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

LinusIT




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

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.

paladin




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

ask the hosting company.

phranque




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

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]

LinusIT




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

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

LinusIT




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

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved