Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having trouble setting up an Route53 Apex Zone that point to an ELB and works on www and non-www domain names.

The domain name is

In Route53 I have

  • clicked new record set
  • added the name www (I read to leave this blank but found the DNS lookup failed for
  • clicked Alias and then in the Target I could select the ELB from the drop down.

ELB - I can see my 2 webservers are there and alive.

In apache httpd.conf I'm running a number of other sites (without ELB successfully - this is just temp until I get ELB working).

httpd.conf virtual site for is

 <VirtualHost *:80>
     DocumentRoot /var/www/html/

Can anyone advise what I might be doing wrong?


Note: currently I can get to the site using but not using

share|improve this question
up vote 1 down vote accepted

added the name www (I read to leave this blank but found the DNS lookup failed for

While for most sites they point at the exact same thing, and are technically entirely separate records. You need a record for both www and non-www. Create another ALIAS record with the subdomain blank you'll be good to go.

share|improve this answer
ok I've add a record for both now - the root is aliased to the EBL address and the is aliased to Is this ok? – Adam Dec 19 '12 at 21:34
or should they both be aliased to the ELB address? Also I'm finding the www arrives at the site but the non-www doesn't - could this be to do with my VirtualHost config? thx – Adam Dec 19 '12 at 21:35
That should be fine. You could alternatively alias both of them to the ELB instead of using a CNAME for the www. – ceejayoz Dec 19 '12 at 21:35
As for non-www not working, it's likely that you'll have to wait a while (depending on your TTL) as DNS records are cached for a while. – ceejayoz Dec 19 '12 at 21:35
thx - pointed both to the ELB and I'll wait a couple of hours to see how it goes... cheers – Adam Dec 19 '12 at 21:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.