Mobile app version of vmapp.org
Login or Join
Cooney921

: Same IP for domain and subdomain It seems that my original post is to confusing, so I rewrote it to be more clear (sry, english is not my first language): my webcontent is hosted by a different

@Cooney921

Posted in: #Cname #Dns #Plesk #Subdomain #WebHosting

It seems that my original post is to confusing, so I rewrote it to be more clear (sry, english is not my first language):

my webcontent is hosted by a different company then my DNS records/domains.
Lets call the first contenthoster and the second domainhoster.

The contenthoster uses plesk (v12 on CentOS 7).
I also got a domain there, but I don't want to use it. Lets call this one something.com

My "real" domain at the domainprovider is called realthing.com.

Up until now my working setup looked like this:
sub1.realthing.com pointed via A-record to IP-Address of something.com. That works.
sub2.something.com has content and is working (content is showing in a browser)

What I want to do now:
sub3.realthing.com point to sub2.something.com and then show the content of sub2.something.com.
I tried to do this with a CNAME entry but what happens is, that sub3.realthing.com shows the content of something.com.
Checking the reverse-DNS record with dnswatch.info shows the right setup (sub3.realthing.com CNAME sub2.something.com). So it seems that I need to do sth at the contentprovider side to enable apache to present the correct content. But I don't know how to do this with plesk.

Any help is much appreciated

Old post (same meaning):
my domain there is some internal url (11-43-223-33.customer.company.com). I configured my real domain (mydomain.com) at my domain/dns provider to point to the IP-address (11.43.223.33) of the contenserver. That works.

Now what I want to do and until now am not able to accomplish:
Using a subdomain (sub.mydomain.com) to point to a subdomain at my contenthoster (sub.11-43-223-33.customer.company.com). I used a CNAME entry for that (sub.mydomain.com CNAME sub.11-43-223-33.customer.company.com).
Instead of showing the content of sub.11-43-223-33.customer.company.com when opening sub.mydomain.com in a browser I got presented with the content of mydomain.com.

As commented below, there is content behind sub.11-43-223-33.customer.company.com which I can access if I open that URL in a browser. So the subdomain at my contentprovider is up and running by itself.

Is it even possible to accomplish this with plesk? Do I need to add sth to the apache config so that it'll work? Any help is much appreciated

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cooney921

1 Comments

Sorted by latest first Latest Oldest Best

 

@Odierno851

Check your Web Server configuration.

How you do that via Plesk I can't say because I try to avoid these "Easy Web Control Panels" like the plague.

However, making an assumption that your underlying web server is most likely "Apache", in the virtual host entry in Apaches configuration for the target sub site your trying to access, you must fully alias the sub domain you wish to access.

I'm not near a server that I can use to grab you an example, but I'll come back to this post later today when I return to my office, and document a full virtual name/server set up.

Off the top of my head for now however, your virtual server needs to contain the following 2 lines (among the other options in there):

ServerName myfully.qualifed-domain.name
ServerAlias mysub.qualified-domain.name another.qualified-domain.name


ServerName MUST hold the name source name you wish that site (sub site) to respond to, which in your case I would suspect would be sub2.something.com , you'd then follow that with a ServerAlias line that would contain sub3.realthing.com

As long as your DNS is resolving the correct public IP address of the server where everything is hosted, the remainder of your configuration will be specific to what you call "Content Host"

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme