2 domains on different IPs

magmall

Verified User
Joined
Jun 25, 2004
Messages
27
Location
los angeles
I have one domain that is the master site. then a 2nd domain is essentially in the background going to be running on the same CMS web platform as the 1st master domain BUT to the public it will look like a totally separate site.

what is happening technically is that domain2 is an "Affiliate" (for lack of a better term) of domain1 and what we have done is set up a rule that converts domain2.com into domain1.com/affiliateid=domain2 so that all the content that is displayed is pulled from a folder called domain2 inside the CMS system.

this way i can showcase two sites but use one web content mgmt system to manage the content and layouts ...

q. is if the webcontent mgmt system resides in the USER acct for Domain1, how can i set up this domain2 to be inside the User acct for Domain1.

i need separate IPs bec of SEO purposes so that the engines dont penalize me for being on the same IP with 2 sites especially since the content is very related.
 
You can't do it only through DirectAdmin because DirectAdmin has a limit of one IP# per user.

You can do it by setting up the second domain name on the server as a different user (under DirectAdmin), then, in a shell as root, changing the user-level httpd.conf file for the new user:
Code:
/usr/local/directadmin/data/users/NEWUSER/httpd.conf
(where NEWUSER is the new username) to use the same DocumentRoot as the first user.

Then use chattr to make the file immutable so it won't revert back.

Jeff
 
Back
Top