How To Point All Subdomains To Main Directory Using CPanel
Jun 11, 2009
Im using Cpanel and I would like to have all subdomains of a domain I host point to the main root directory of the site. How would I do that in cpanel? When I click on subdomains do I just put the wildcard * for the subdomain name?
Also what do I do if I want to point all subdomains to the main directory except for the certain domains I specify? So if I wanted blogs.domain.com to point do a different location but still have all other subdomains point to the main directory.
When trying to make a subdomain on my main cpanel domain, through cpanel, it acts like it is making it, and adds the dns entry, but it does not work. All other domains work fine.
I submitted a ticket to buycpanel, they asked for the login information this morning, and have not heard back from them. This has happened every since they installed cpanel.
I am hoping its something simple that one of you knowledgeable people may know how to fix.
Lets say I have abcd.com as the main domain on cpanel. abcd.com has 10 subdomains.
Basically what I want to do is when I do an addon domain or parked domain I want the subdomains to basically point to abcd.com automatically. Let's say the addon/parked
domain is 1234.com For example I have sub.abcd.com as the main subdomain
so when I type in sub.1234.com I want it pointed to sub.abcd.com internally meaning the script/files from there however in the browser show as if it were sub.1234.com
Whenever I try to create a user account I get the following error
Sorry, resellers are not permitted to create subdomains of the server's main domain
My server domain is www.domain.com and reseller is trying to create a user account like new.domain.com . It was working fine a few weeks back but I think since I upgraded the cpanel and whm, it doesnt allow creation of accounts anymore.
Could someone help me to fix this error please?
I own the VPS and the reseller and all other accounts.
I'm setting up a SAAS service which is built on top of Laravel. To put it simply the service itself knows whether its being called from a sub.example.com or just example.com and serves a correct response accordingly. So going to sub.example.com will use the same index.php file as example.com but the routes and controllers within the application will provide a different response. sub.example.com will show a tenant login page where as example.com will show a new tenant subscription page or something else.
So when someone new subscribes I add a new entry to the database with a subdomain name for them and when a request comes from that subdomain and they are logged in it will show them their information. Easy right.
There is a problem though with setting it up with Plesk. When I add a wildcard subdomain, it will look for /subdomains/sub/ for the files which is a bit problematic since I want it to serve the files from the same place as the domain example.com.
Is there a way to configure that so that regardless of the subdomain it will try and serve the exact same content as my main domain?
There is a directory say, "Master" and inside, "Master" there is sub-directory, "Slave". A user who has access to, "Master" should be able to access, "Slave" automatically. However, a user who has access to, "Slave" should not have access to, "Master". Inside cPanel this type of protection is not possible.
I've set up the affiliate manager from jrox.com for a client of mine. This includes the setup of wildcard DNS so that each affiliate can have username.clientssite.com and have it count their clicks - which works properly.
What isn't working properly is that he also has forums.hissite.com, which is loading the main website page instead of his forums. He is using cpanel to add the subdomain, and it isn't failing, so I'm not sure what's going on with it.
User residual Group residual CustomLog /usr/local/apache/domlogs/forums.residualvictory.com combined ScriptAlias /cgi-bin/ /home/residual/public_html/forums/cgi-bin/ </VirtualHost>
And the bind file for his domain
Quote:
; Modified by Web Host Manager ; Zone File for residualvictory.com $TTL 14400 @ 86400 IN SOA ns1.lucidic.com. root.lucid.lucidic.com. ( 2007050705 86400 7200 3600000 86400 )
residualvictory.com. 86400 IN NS ns1.lucidic.com. residualvictory.com. 86400 IN NS ns2.lucidic.com.
residualvictory.com. 14400 IN A 74.53.106.146
localhost.residualvictory.com. 14400 IN A 127.0.0.1
residualvictory.com. 14400 IN MX 0 residualvictory.com.
mail 14400 IN CNAME residualvictory.com. www 14400 IN CNAME residualvictory.com. ftp 14400 IN A 74.53.106.146 forums 14400 IN A 74.53.106.146 www.forums 14400 IN A 74.53.106.146 * 14400 IN A 74.53.106.146
I wanted to point my MX record from my registrar's dns to a hosted account that is controlled by cPanel, but inside cPanel I don't see a unique MX record, it just lists my domain name. Is this possible with cPanel? I have done this before with H-Sphere.
I am just parking my domain and using my registrar's nameservers and wanted to just add in the MX record for email.
I have several sites under a cPanel/WHM reseller account. I want to move the biggest site under this account to another host. This site is the main site for the reseller account. The user name associated with it is my account name with the host, and all the other sites on that account are shown in WHM to be owned by it.
After I have the site running on the new host, I want to delete it from the old one. How can I do this whilst still retaining access to WHM which is only accessible through the cPanel of this site?
I have recently run into the need to setup subdomains on one of my site's with their own SSL certificate. Cpanel only allows one SSL per domain.
Does anyone have experience or a recommendation on how to setup a subdomain with it's own SSL.
My thought is to setup a separate hosting account for the subdomain. i did this in plesk a few times successfully, and in theory it should also work in cpanel. With the separate account, i can install a separate cert and the problem is fixed, but I'm not sure if it will work.