Gentoo Archives: gentoo-user

From: Neal Hogan <nealhogan@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] http://<myhost>.com is not redirected to http://www.<myhost>.com
Date: Tue, 08 Jun 2010 19:04:12
Message-Id: AANLkTinvFcf1HbYmf5NME_8sWZutw3t6vyEc4tZgXx3j@mail.gmail.com
In Reply to: [gentoo-user] http://.com is not redirected to http://www..com by Jarry
1 On Tue, Jun 8, 2010 at 1:53 PM, Jarry <mr.jarry@×××××.com> wrote:
2 > Hi,
3 >
4 > I have some problem with apache virtual hosts configuration.
5 > When I enter http://www.<myhost>.com in browser, I get the right
6 > page. But when I enter http://<myhost>.com, I'm redirected to
7 > default (other) page on the server. Where could be the problem?
8 > Should not the ServerAlias directive take care of it?
9 >
10
11
12 I'm not an expert, but what IP do you have pointing to each hostname
13 (www. and non-www.)? I know with my DNS service I make sure that the
14 same IP points to both, where one is the A-record and the other is a
15 Alias/CNAME.
16
17 HTH,
18 -Neal