httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <>
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 <> 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 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
> We have a requirement to rename to, 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 to point to the new
> one, change the DNS so that it recognises
> 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 that points to the same servers
- 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.


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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message