Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am developing an web application, I recently purchased the domain from godaddy.com and the domain is use google apps, for email, calendar docs and other services as well. Now I just need to show that" my site is under construction" I have a static page which is put on S3 now I need to map "www.mydomain.com" to that static page which is stored on s3. I am kinda of newbie/novice to this so kindly help me.

share|improve this question

migrated from stackoverflow.com Apr 25 '11 at 12:35

This question came from our site for professional and enthusiast programmers.

add comment

3 Answers 3

The best solution I can think of is point an A record in your DNS to the elastic IP from AWS. This has the advantage that it never actually hits your host - it goes straight from the DNS to AWS, so it should be faster as well.

share|improve this answer
add comment

Three simple steps for this:

  1. Your S3 bucket must be named the same as your desired subdomain: "www.domain.com".

  2. You need to setup a CNAME record to in your DNS to point your subdomain to the S3 bucket: CNAME www.domain.com -> www.domain.com.s3.amazonaws.com

  3. You need to make you splash page the "index document" for the bucket so that it will open by default. (See: http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?IndexDocumentSupport.html)

share|improve this answer
add comment

Not sure I'm totally following, but you could do one of two things as a hack I think...

1) If you know the correct URL you could redirect from your domain to the other URL (this may be bad for traffic later though when your domain rolls to the correct "live" one)

2) You could set up a page on the new domain with a big iFrame that loads the other URL. The down side here is all the sub pages will not have updated URLs in the browser...

This may be closer to the solution you're looking for though...

http://stackoverflow.com/questions/570890/amazon-s3-url-rewrite

share|improve this answer
add comment

Your Answer

 
discard

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