Get Paid to Participate - up to $1 per post!     Twitter     Facebook     Google+
Hosting Discussion
 

Hosting Discussion > Web Hosting Forums > Web Hosting Discussion > How does a shared plan host multiple domains?
forgot password?



Reply


Old
  Post #1 (permalink)   02-27-2016, 09:19 PM
HD Management Staff
 
Artashes's Avatar
 
Join Date: Apr 2003
Posts: 9,721

Status: Artashes is offline
Something I've wondered about and something that I've never used myself.

When someone advertises 2 or more domains as part of a shared hosting plan, how are these domains actually hosted under the same plan? What I am interested in specifically is does each domain get its own cPanel/FTP access or are they piled up under the main domain that a client chooses as "root" and they are presented in the form of folders inside "public_html" folder?
 
 
 


Old
  Post #2 (permalink)   02-27-2016, 09:26 PM
HD Wizard
 
romes's Avatar
 
Join Date: Feb 2007
Location: IL
Posts: 1,651
Send a message via Skype™ to romes

Status: romes is offline
One domain will be root and the other will have it's own folder with ftp access (for outside persons) or the owner (if he owns both) can login through the root domain and mess around with both sites.

If I understood your question correctly.
__________________
RomesBlog.net | New Sci Fi Novel! - Aliens, Wars, Backgrounds, Settings and more!
Vanguard Project | Stay up-to-date on the latest news about my sci fi novel!
 
 
 


Old
  Post #3 (permalink)   02-27-2016, 09:49 PM
HD Management Staff
 
Artashes's Avatar
 
Join Date: Apr 2003
Posts: 9,721

Status: Artashes is offline
Quote:
Originally Posted by romes View Post
One domain will be root and the other will have it's own folder with ftp access
So that domain-folder will be under root domain's file structure? Inside "public_html" folder?

So that's basically same as addon domain setup then.
 
 
 


Old
  Post #4 (permalink)   02-27-2016, 10:55 PM
HD Amateur
 
Join Date: Feb 2016
Posts: 58

Status: ExonHost is offline
Quote:
Originally Posted by Artashes View Post
So that domain-folder will be under root domain's file structure? Inside "public_html" folder?

So that's basically same as addon domain setup then.
Yes, you are correct. They mean addon domain.
__________________
ExonHost- Blazing Fast Pure SSD Hosting
Pure SSD, LiteSpeed, PHP 7, Optimized MySQL| DDOS Protected Hosting
24/7X365 Technical Support | 99.9% Uptime Guarantee | 30 days Moneyback Guarantee!
 
 
 


Old
  Post #5 (permalink)   02-28-2016, 03:11 AM
HD Wizard
 
easyhostmedia's Avatar
 
Join Date: Mar 2011
Location: Northumberland, UK
Posts: 4,950
Send a message via MSN to easyhostmedia

Status: easyhostmedia is offline
these days i cant understand why anyone uses addon domains when a reseller account is just as cheap as a shared account
__________________
Terry Robertson - CEO The Easyhost Media Group
Niceday Hosting - Affordable Hosting
PowerSSL - - We Secure your World
The Scamlist Forum - Fighting against scammers
 
 
 


Old
  Post #6 (permalink)   02-28-2016, 03:30 AM
HD Community Advisor
 
ughosting's Avatar
 
Join Date: Jan 2011
Location: London
Posts: 604

Status: ughosting is offline
DirectAdmin is a little different. The domain structure is:-

/home/<user>/domain/<domain_name>/public_html/<your_files>

So there is no root domain as such.
You could create a separate FTP user for each domain and resell it, we've seen this over the years, but as @easyhostmedia says reseller accounts are so cheap it's the better option.
(Also, who wants to have to create and destroy emails accounts continually)

With CloudLinux resources and Linux permissions in general, it's never a good idea to host multiple customers in the same account.
They run as the same user and so if one domain is compromised, that domain can often access the others, having said that open_basedir should still be honoured, so it still takes a little skill on the hackers part.
We know how resources can be stolen by a single account, in this case a single domain. Even cloudlinux cannot stop that.

Back to DirectAdmin, whilst there is no "root" domain, their is the concept of the "default" domain. This has a symlink between /home/<user>/public_html and /home/<user>/domain/<your_default_domain>/public_html so that you can access your domain using http://<servername>/~<user>.
This was historically done so customers could share a servers SSL certificate.
(Rarely taken up these days as you can get an SSL certificate for $10 or less from enom or free from startssl and DirectAdmin and cPanel both support SNI so you don't need a dedicated IP anymore.)
__________________
DDoS Protected, LiteSpeed + LiteMage on CloudLinux with SSD Disks, R1Soft, Softaculous, SIteBuilder, BitNinja, LetsEncypt & Patchman
UnixGuru: Accounts with 1-16 CPU Cores, 2-32GB RAM. Why use a VPS?
█ Choose from Shared, Reseller and Elastic-Sites Hosting

Last edited by ughosting : 02-28-2016 at 03:35 AM. Reason: changed comprised to compromised
 
 
 
The Following User Says Thank You to ughosting For This Useful Post:
Artashes (02-29-2016)


Old
  Post #7 (permalink)   02-28-2016, 04:05 AM
HD Wizard
 
easyhostmedia's Avatar
 
Join Date: Mar 2011
Location: Northumberland, UK
Posts: 4,950
Send a message via MSN to easyhostmedia

Status: easyhostmedia is offline
Quote:
Originally Posted by ughosting View Post

(Rarely taken up these days as you can get an SSL certificate for $10 or less from enom or free from startssl and DirectAdmin and cPanel both support SNI so you don't need a dedicated IP anymore.)
this is true, but i have seen issues with SNI and cpanel.

if like me you have a wildcard SSL for your servers, so that the servers run under https://<hostname> and a user purchases an SSL for their site without a dedicated IP so https://<yourdomain> then when you type in a browser https://<yourdomain> you get the SSL error message as it reads the servers SSL and says no ssl for the domain https://<yourdomain> and the only way round this is by using a dedicated IP
__________________
Terry Robertson - CEO The Easyhost Media Group
Niceday Hosting - Affordable Hosting
PowerSSL - - We Secure your World
The Scamlist Forum - Fighting against scammers
 
 
 


Old
  Post #8 (permalink)   02-28-2016, 04:08 AM
HD Wizard
 
easyhostmedia's Avatar
 
Join Date: Mar 2011
Location: Northumberland, UK
Posts: 4,950
Send a message via MSN to easyhostmedia

Status: easyhostmedia is offline
Quote:
Originally Posted by ughosting View Post

So there is no root domain as such.
You could create a separate FTP user for each domain and resell it,
but as its a shared plan then you will find in the hosts TOS that if you sell it you can see your account suspended and/or terminated as shared plans are for your own use and not to be resold
__________________
Terry Robertson - CEO The Easyhost Media Group
Niceday Hosting - Affordable Hosting
PowerSSL - - We Secure your World
The Scamlist Forum - Fighting against scammers
 
 
 


Old
  Post #9 (permalink)   02-28-2016, 08:31 AM
Account Disabled
 
Join Date: May 2012
Posts: 969

Status: Collabora is offline
In cpanel, an add-on domain is really a subdomain of the account's domain. The add-on domain name is merely an alias for the subdomain with a subdomain's directory structure (a subfolder of the main site). There is no separate cpanel for each add-on domain, they are all managed in parent site's cpanel (they are subdomains afterall) . You can create mail for the add-on domains, but cpanel makes no real distinction between add-on domains and the account domain.

Thus if you create an addon domain in folder /domain2

Main domain - domain1.com
Addon domin - domain2.com
Cpanel creates subdomain domain2.domain1.com
domain2.com points to domain2.domain1.com
A valid and working url for domain2's site - http://domain1.com/domain2 !

Its obvious now that there is no technical difference between subdomains or add-on domains

Add-on domains in cpanel presents a security issue because the the first site's ftp account can access all the add-on domain's sites (there are tweaks to get around that, one needs whm or server access). In that sense Windows with all the panels I know of creates s more secure environment because an add-on domain has separate directory structure and panel as if it were just the only domain.

Last edited by Collabora : 02-28-2016 at 08:58 AM.
 
 
 
The Following 2 Users Say Thank You to Collabora For This Useful Post:
Artashes (02-29-2016), easyhostmedia (02-28-2016)


Old
  Post #10 (permalink)   02-28-2016, 08:52 AM
HD Wizard
 
easyhostmedia's Avatar
 
Join Date: Mar 2011
Location: Northumberland, UK
Posts: 4,950
Send a message via MSN to easyhostmedia

Status: easyhostmedia is offline
Quote:
Originally Posted by Collabora View Post
In cpanel, an add-on domain is really a subdomain of the account's domain. The add-on domain name is merely an alias for the subdomain.
to a point yes.

only different is that
1) A subdomain will be set at me.mydomain.com
2) An addon domain means you have to register a new domain name and then add this to the main account as an addon domain, but this would just create a subfolder like a subdomain s0 of you added the domain testtome.com all it would do is create subdomain testtome.mydomain.com which your domain testtome.com would point too.

but what would be the point you may as well set it up as a standalone shared account
__________________
Terry Robertson - CEO The Easyhost Media Group
Niceday Hosting - Affordable Hosting
PowerSSL - - We Secure your World
The Scamlist Forum - Fighting against scammers
 
 
 


Old
  Post #11 (permalink)   02-28-2016, 12:15 PM
HD Community Advisor
 
ughosting's Avatar
 
Join Date: Jan 2011
Location: London
Posts: 604

Status: ughosting is offline
The moral of the story here, if you want to resell services spend the extra few dollars and buy the reseller account.

You will save on admin, as your customers can do most things themselves, and there is much better security separation.
__________________
DDoS Protected, LiteSpeed + LiteMage on CloudLinux with SSD Disks, R1Soft, Softaculous, SIteBuilder, BitNinja, LetsEncypt & Patchman
UnixGuru: Accounts with 1-16 CPU Cores, 2-32GB RAM. Why use a VPS?
█ Choose from Shared, Reseller and Elastic-Sites Hosting
 
 
 


Old
  Post #12 (permalink)   02-28-2016, 05:31 PM
HD Newbie
 
Join Date: Feb 2016
Posts: 1

Status: fructose is offline
to pen a website with shared hosting the speed is slow
 
 
 


Old
  Post #13 (permalink)   03-01-2016, 05:48 AM
HD Newbie
 
Join Date: Sep 2015
Posts: 4

Status: winnervps is offline
Quote:
Originally Posted by fructose View Post
to pen a website with shared hosting the speed is slow
What do you mean? I can't get what you mean.
 
 
 


Old
  Post #14 (permalink)   03-01-2016, 06:03 AM
HD Wizard
 
easyhostmedia's Avatar
 
Join Date: Mar 2011
Location: Northumberland, UK
Posts: 4,950
Send a message via MSN to easyhostmedia

Status: easyhostmedia is offline
Quote:
Originally Posted by fructose View Post
to pen a website with shared hosting the speed is slow
What do you mean?

Speed will even be slow on a reseller account as a reseller account is basically a shared account, but the user has reseller privileges.
__________________
Terry Robertson - CEO The Easyhost Media Group
Niceday Hosting - Affordable Hosting
PowerSSL - - We Secure your World
The Scamlist Forum - Fighting against scammers
 
 
 


Old
  Post #15 (permalink)   03-01-2016, 06:24 AM
HD Amateur
 
Join Date: Feb 2016
Posts: 58

Status: ExonHost is offline
cPanel is changing their primary domain management system. They have planned to change current system. So seems they are going like direct admin structure.
__________________
ExonHost- Blazing Fast Pure SSD Hosting
Pure SSD, LiteSpeed, PHP 7, Optimized MySQL| DDOS Protected Hosting
24/7X365 Technical Support | 99.9% Uptime Guarantee | 30 days Moneyback Guarantee!
 
 
 
Reply
Previous Thread Next Thread


Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: