Mobile app version of vmapp.org
Login or Join
Gonzalez347

: Pointing a parked subdomain to a real subdomain I have two registered domains. Say the domains are originaldomain.com and parkeddomain.com. parkeddomain.com points to originaldomain.com. I also have

@Gonzalez347

Posted in: #Cpanel #Domains #Httpd #HttpdConf #MultipleDomains

I have two registered domains. Say the domains are originaldomain.com and parkeddomain.com.

parkeddomain.com points to originaldomain.com.

I also have a few subdomains in originaldomain.com, and I want to be able to do this:


subdomain1.originaldomain.com -> subdomain1.originaldomain.com
subdomain2.originaldomain.com -> subdomain2.originaldomain.com


And so on.

Problem is, I can't figure out through cPanel, or WHM how to do this, if it is possible.
I also went through httpd.conf , and changed ServerAlias under the VirtualHost of subdomain1.originaldomain.com.

So what I have is:

<VirtualHost .....:80>
ServerName subdomain1.originaldomain.com
ServerAlias subdomain1.originaldomain.com subdomain1.parkeddomain.com subdomain1.parkeddomain.com
DocumentRoot /home/originaldomain/public_html/subdomain1
...
</VirtualHost>


I then restarted httpd, using service httpd restart, but nothing seems to work.

P.S.: I'm using CentOS 5.3.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gonzalez347

1 Comments

Sorted by latest first Latest Oldest Best

 

@Yeniel560

You have to change some NS or A Records for each entry.

Here is an example.


My domain is johnbhatt.com and have hosting. Another Domain is
pyarb.com and is only a domain name.

I forwarded all visitors to johnbhatt.com and each sub-domain like,
store.pyarb.com is pointing to store.johnbhatt.com and same for other
sub-domains also.


I have just updated the Name servers as below.

pyarb.com points to ns21.hostdatasecure.com and ns21.hostdatasecure.com.
And to point to hosting page, I used A records for each domain.

I use Windows hosting and I have added a Domain Alias in control pannel for domain but didn't tried with subdomains in Linux hosting.

You can check details with below link. network-tools.com/default.asp?prog=dnsrec&host=johnbhatt.com

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme