[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Multiple Domains



Now, I want to have the site www.domain1.org to point to www.domain1.com. I
have it working now, but I am getting the web address in the browser to say
www.domain1.com. I need to have the web browser to say www.domain1.org. I
was told that I could use an A record and add the alias to the origional
Virtual Site, but that causes the problem that the wrong name shows up in
the browser. If anyone can assist me, it would be of great assistance.

If you set it up as an alias then you will always get the address being rewritten to the primary site's address.

One way around this is to:

Setup domain1.com and domain.org as separate virtual sites.

Then edit httpd.conf (make a backup first).

Edit the part of domain.org where it says "DocumentRoot".
Change this from /home/sites/www.domain1.org/web to /home/sites/www.domain1.com/web

Restart Apache.

In this way it'll pull the content from the domain1.com folder but will leave the url as domain1.org.

Brian