Re: renaming a domain

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

 



On Wed, Jun 11, 2008 at 15:22, Paul Hunter <paul_hunter@xxxxxxxxxxxxxxxx> wrote:
>
> Hello, I'm fairly new to Apache etc, so forgive me if i'm asking a stupid
> question...
>
> My company has a domain called ukgroup.mycomp.com. It has a document root of
> the same name. There are also several redirects set up that redirect
> requests to other domains. There are also redirects set up in other domains
> that point to ukgroup.mycomp.com.
>
> We have a requirement to rename ukgroup.mycomp.com to group.mycomp.com, so
> that nobody using the site every sees any reference to ukgroup. Am i right
> in assuming that to do this, i am going to have to rename the document root
> under htdocs, set up redirects from ukgroup.mycomp.com to point to the new
> one, change the DNS so that it recognises group.mycomp.com?
>
> Does this sound correct, or is there any easier way to do this?

You don't have to rename the documentroot. Apache doesn't care what
the documentroot is called, as long as it is set correctly in the
config. Users also don't see the documentroot. That your documentroot
happens to have the same name as your domain is just because it was
once set up that way.

Basically what you need to do is:
- Define a DNS entrys group.mycomp.com that points to the same servers
as ukgroup.mycomp.com.
- Change the "servername" directive in your httpd.conf to the new name.
- If you want people to be redirected from the old to the new site
just create a virtual server with the old name, and have it redirect
every request to the new one.

Krist


-- 
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux