Question

I have a site, lets say it's called www.supersite.com. Now, I have a site called www.subsite.com. I would like to make calls to subsite return what is on supersite but keeping the url to subsite.

Now, to make it more interesting, the only change needed on subsite is this: Change www.subsite.com A record to {the IP of supersite}

I have full control of supersite, so if it needs any configuration for something like this, it can be done.

take care, lee

Was it helpful?

Solution

This should work:

Let the A record of www.subsite.web point to the same machine which runs www.supersite.web.

Then in the Apache configuration file of the machine which runs www.supersite.web, alias subsite and supersite using Apache's ServerAlias directive:

<VirtualHost *:80>
  ServerName www.supersite.web
  ServerAlias www.subsite.web
</VirtualHost>

Read more about ServerAlias and VirtualHost.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top