- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
I ended up adding an IP to an existing server to do the redirects. I appreciate all the ideas.
Perhaps create a wildcard DNS record that points to S3 static website? Or a EC2 instance running Apache or Nginx? Configure the index.html page to do a javascript redirect?
Contents of the file could be as below
<html>
<body>
<script>
document.location="https://aws.amazon.com";
</script>
</body>
</html>
An easy way to do this is to setup an internet facing ALB and then have 1 default rule that performs a redirect.
Point all your domains to the ALB.
If using HTTPs you need to ensure you have a Cert applied to the HTTPs listener for each domain.
thanks, Gary, I have no idea what ALB is.
I am trying to avoid having to become an expert in something I'm going to setup once...
Are there any tutorials for this?
ALB is an application load balancer. This will cost you to run it more than an S3 bucket
Even though im an AWS advocate, if its something simple you need and do not want to spend a fortune/complicated setup. You could Transfer the domains to another Domain Provider such as FastHosts and use their Free WebForwarding features.
I do not disagree. However, moving 89 domains is not exactly ideal.
So basically, from those that have responded, my take away is - I can't do this.
It would require another server with all the config that goes with it, or another AWS service. Route 53 and S3 cannot do it, short of creating an S3 bucket for every single possible permutation of every single domain we have.
I appreciate everyone's input!
Hello, I haven't tested this, but I think it may work: https://serverfault.com/a/991291. Fronting S3 with CloudFront/ACM, in CloudFront you would add *.example.com as allowed CNAMEs, then use R53 Alias record to point xxxx.cloudfront.net to you *.example.com. Then, have an additional Route 53 CNAME record that points any *.example.com to your destination URL.
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr
this doesn't work. the NoSuchBucket problem still exists.
(the index.html redirect does work)
www.example.com -> CNAME to example.com where example.com is an A record with Alias on pointing to the S3 bucket
How about EC2 or Lightsail server instance?
I don't know what lightsail is. I also do not want more servers to keep track of. I'm not trying to be difficult; I need simple. More servers isn't simple...
I like Route53, but it lacks the single feature that every other domain registrar has - wildcard redirects.