homepage Welcome to WebmasterWorld Guest from 54.225.24.227
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Multiple Domains and in the same webspace
Need help with setup for a service
federico jacobi




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

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

/whatever/home/common/index.php

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

/whatever/home/johndoehome/images

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?

THANKS!

 

lammert




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

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




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

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.

bigstack




msg:4237037
 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
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