httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] renaming a domain
Date Thu, 12 Jun 2008 15:33:23 GMT
On Wed, Jun 11, 2008 at 15:22, Paul Hunter <paul_hunter@standardlife.com> 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@gmail.com
krist@vanbesien.org
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message