Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 down vote accepted

It's simple to do this with DNS. Host your home page (e.g. www.example.com) on Amazon S3, and use a different hostname for the remainder of your site, (e.g. www2.example.com - 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
1  
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

 
discard

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.