appwiki:cpanel

Differences

This shows you the differences between two versions of the page.


Previous revision
appwiki:cpanel [2024/01/15 08:04] (current) – [Primary domain, Add-on domain and Sub-domain] ying
Line 1: Line 1:
 +====== cPanel guide ======
 +
 +===== ModSecurity =====
 +
 +  * introduced ModSecurity method to ensure posting site-wide, text submit to server will be check before run
 +  * a 406 error will occur if the text is a bit sensitive
 +  * normally it need to be configured on server side for whitelist
 +
 +===== domain pointing =====
 +
 +  * domain need 15 min to refresh the pointing
 +  * local browser or rounter has around 24 hour to refresh the cache
 +  * brower history and cache need to cleared to update the domain pointing lookup
 +
 +===== Primary domain, Add-on domain and Sub-domain =====
 +
 +**Primary domain**
 +  * Primary domain is the main domain pointing to your /main_root/public_html, also the main name of the cPanel
 +    * **subdomain**, it is sub of primary domain, subdomain.primarydomain.com, and it is usually under /main_root/public_html/sub_domain/, it also can go /main_root/subdomain_folder/
 +
 +**secondary domain**
 +  * A secondary domain functions as an independent entity, with its own email accounts, websites, directory structure, statistics pages, bandwidth, and recording. The only real connection between a primary domain and a secondary domain are the resources and feature limits of a shared service. For example, if your service allows for ten email accounts, you can have five on your primary domain and five on your secondary domain.
 +
 +**addon domain** (cPanel's way of calling secondary domain)
 +  * addon domain is a separate domain point to additional websites, it can be under /main_root/addon_domain_folder/ or it can be under /main_root/publich_html/addon_domain_folder, it has no link to primary domain, and search engine will treat them separately.
 +  * However, unlike primary, it doesn't have its own cPanel, it still can create email account, redirects, install and subdomains, but for ftp acc, the username will be username@primary_domain.com and ftp server still shows as primary_domain.com. Thus other than ftp acc, it is able to show no connection to primary domain
 +  * If you make sure no url link from primary domain to addon domain, the search engines won't find them through primary domain. such as primary_domain.com/addon_domain_folder, or addon_domain_subname.primary_domain.com. Thus it is better to put folder structure as primary domain web sits at /main_root/publich_html, addon domain web sits at /main_root/addon_domain_folder
 +
 +  * ref:
 +    * http://support.hostgator.com/articles/hosting-guide/publish-your-site/does-google-work-with-addon-domains
 +    * https://documentation.cpanel.net/display/ALD/Addon%20Domains
 +  * addon domain ftp ref:
 +    * http://hostpapasupport.com/kb/ftp-settings-for-addon-domains/
 +  * disable access addon domain from primary domain
 +    * disable from subdomain way access:
 +      * http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/
 +      * https://my.bluehost.com/cgi/help/498
 +    * disable from subfolder way access or just same level folder structure:
 +      * https://features.cpanel.net/topic/as-a-website-owner-i-would-like-my-main-domain-to-use-a-subfolder-like-addon-domains-so-that-i-can-have-better-multidomain-setups
 +      * https://my.bluehost.com/cgi/help/498
 +
 +**parked domain**
 +  * parked domain is like alias of primary domain, so always pointing to same primary location
 +
 +**Alias domains**
 +  * Alias domains display the primary domain's website with a different domain name/URL
 +
 +reference
 +  * https://www.youtube.com/watch?v=Ucxf3ZkHOvU
 +
 +note on godaddy host site:
 +  * Addon Domains are only available for Deluxe and Ultimate cPanel shared hosting accounts. (tested on economy plan, they wont allow more than 0 addon domain)
 +  * however, subdomain are available on all accounts (max 25 on economy plan)
 +  * alias domain is on unlimited on all plans
 +  * more than 10 sites may be slow
 +  * ref
 +    * https://sg.godaddy.com/help/add-addon-domains-to-host-multiple-websites-8877
 +    * https://sg.godaddy.com/help/hosting-multiple-websites-on-your-hosting-account-5399
 +    * https://sg.godaddy.com/help/add-domains-8342
 +
 +===== cPanel email setting =====
 +
 +  * change email time to local timezone 
 +
 +{{:appwiki:cpanel:cpanel_email_time_2.png|}}