Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Multiple Domains and in the same webspace

Need help with setup for a service


federico jacobi

2:44 am on Sep 23, 2010 (gmt 0)

5+ Year Member

Thanks in advance for help. (this post is also at the domain threads)

I need to register domain names (different owners) all to land in the same webspace so they can all run the same application seamlessly. I.E.

www.domain1.com (John Doe)
www.domain2.com (Jane semiDoe)

Different owners, different accounts, different everything except both land on


If possible can they have their own /images/ folder as in


making impossible for Jane to access john's images folder unless she goes to www.domain1.com/images

Right now i have a reseller account with Justhost and have some degree of control over some of the server mechanics.

My guess is this must be related to DNS but bottom line i really don't know. How is this done?



3:18 am on Sep 23, 2010 (gmt 0)

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

Hi Federico, first of all Welcome to WebmasterWorld!

The first thing you have to do is to point the domain names to the server which should serve the pages of the sites. You an do that in to ways. The first way is to add for each domain an A record which contains the IP address of the server. In your case for both IP addresses the IP address you will use is the same. Sometimes a hosting company prefers that you don't use the IP address of the server, but a name they already have given to the server. In that case you add a CNAME record in the DNS settings of both domains which contains the name the hosting company has provided you.

You are now sure that all requests for both domains are directed to the webserver. How that server processes the website requests depends on the settings on the server. The server can run Apache webserver software, IIS software, or in some rare cases other server software. It depends on the type of server software and the type of account you have (shared or VPS) how the settings on the server should be. If you have more information about that, we can help you further in the right direction.

federico jacobi

4:03 am on Sep 23, 2010 (gmt 0)

5+ Year Member

Thank you so much for a quick answer!

I guess directing the domains to the same server is not really a problem. The issue really is, once this is done, how do i get the server to understand that all those domains MUST use the same webspace.

The idea is to run the exact same scripts on all urls. The application will load the right content depending on the requesting url, but the idea is to run the application from the same space, instead of installing it on every webspace assigned to the url.

I'm pretty sure it runs on Apache.


8:15 pm on Nov 30, 2010 (gmt 0)

just point them all to the same webspace....

aka in apache point the virtual host name stuff to the same directory.

Featured Threads

Hot Threads This Week

Hot Threads This Month