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 currently host on a dedicated server. I want to serve only my homepage from Amazon S3/CDN. Is this in anyway possible using DNS.

Only Homepage should be served using amazon s3/cdn, rest of the pages should be served from the dedicated server.

share|improve this question
Just out of curiosity: What would be the reason for such a construct? – Sven Feb 27 '13 at 9:10
homepage is the main page of the site, you want it to load as fast as possible and this will also support gzip without any extra overhead, homepage could take any amount of traffic and would load from nearest cdn location. – Anoop Naik Feb 27 '13 at 9:13
up vote 1 down vote accepted

It's simple to do this with DNS. Host your home page (e.g. on Amazon S3, and use a different hostname for the remainder of your site, (e.g. - replace www2 with whatever suits you best). You'll have to change all the links on your homepage to point to www2.

Simply point the a-record for www to your Amazon S3 IP, and the www2 record to the other web server.

share|improve this answer
The solution is good, but changing other links to www2 is impossible as its a huge content site and would also affect seo in some way. if i think otherwise like having www2 for homepage -- then it also affect as people tend to type www prefix more. Any other solution? – Anoop Naik Feb 27 '13 at 10:03

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.