Cloudfront+lightsail+bluestack ERR_TOO_MANY_REDIRECTS - amazon-cloudfront

I am have my Wordpress website running on AWS lightsail with public IP of 10.20.50.x
As I can't use IP directly in cloudfront, I created A record in Bluestack and mapped 10.20.50.x with origin.example.com
After that I used origin.example.com as origin and created a distribution(dgkddddddggggg.cloudfront.net) in AWS Cloudfront.
Atlast, I created a CNAME in Bluestack and mapped dgkddddddggggg.cloudfront.net with test.example.com but when I am trying to access it. I am getting ERR_TOO_MANY_REDIRECTS
Could someone please help me to understand what I am doing wrong?

Related

Azure CDN url redirect issues

Im currently trying to move my current redirect engine off a nginx proxy on a linux box to Azure. Currently ive been triyng to do it with this example:
dev.oldurl.com --> dev.newurl.com
This is the rule I currently have:
CDN Rules
When I have gone to the URL, im just getting a certificate error, I should also add that on the Domains section on the CDN I have this error "CNAME/alias record is not currently detected" I can confirm these are present in our on prem DNS server.
Thanks in advance.
As for the certificate error. You should have certificates corresponding to the URL's/domain names you are using in respective places. So the nginx server object receiving and redirecting dev.oldurl.com requests should have a certificate for dev.oldurl.com and the server receiving/handling requests for dev.newurl.com should have a certificate for dev.newurl.com.
For the CNAME record error, the Azure CDN will be looking at the public DNS records published on the internet. So you should check with your internet DNS provider for your domain to update the records.

Configure subdomain in express-subdomain?

I am trying to use the directions given in
https://www.npmjs.com/package/express-subdomain
to set up subdomain.
I a hosting my server in amazon EC2 and the DNS provider is google-DNS.
but I am getting error while accessing the page.
404. That’s an error.
The requested URL / was not found on this server. That’s all we know.
So I need to do any configuration in EC2 or in my DNS?

How to setup custom submain for Api Gateway for site managed by wix?

Our website mywebsite.com is currently managed by Wix DNS. We wanted to create a subdomain api.mywebsite.com to forward requests to aws api gateway. Here are the steps I tried
Created an ACM certificate for *.mywebsite.com
In AWS console API gateway I created a custom domain and associated it with ACM certificated I created about. I got a cloudfront target domain name somecloudfrontid.cloudfront.net
I created a CNAME record in wix that points api.mywebsite.com to somecloudfrontid.cloudfront.net.
But, when I tried to hit api.mywebsite.com I get this error:
ERROR
The request could not be satisfied.
Bad request. Generated by cloudfront (CloudFront)
Am I missing any step? How can I get this working? Do I need to transfer my domain to AWS router 53 to make it work with AWS?
I suggest transferring the domain to Route53. There you can create an alias for your subdomain under Hosted Zones, and point it directly to your cloudfront target domain, as well as several other AWS resources quite easily.

how to link new domain with amazon web services

I got got a new domain that I want to link to aws.
I've already have EC2 instance running.
I'm using Route53 for DNS, and opened 2 records: www.domain.com and domain.com
I updated the register company about the new dns servers from route53.
I do have an elastic IP I linked to my EC2 instance.
the problem is that i can't reach my web site.
I guess I'm missing some parts.
did I miss anything along the way?
EDIT: I can reach my site using the public IP I got from Amazon.
But I can't reach it using my domain.
how can i tell what breaks it?
Some things to check:
Have you definatley set the namservers correctly with the domain registrar?
Have you added the elastic IP address in Route 53?
Some other things that you could possibly check are the firewall settings. This is unlikely the case if you can access the site via the IP address.
Do you know what IP address the domain is resolving to. Is this correct?
Also, you can have look at this blog it will explain lot of things
http://geekospace.com/mapping-aws-ec2-instance-to-your-domain-in-godaddy/

Can't view my static website, hosted with S3 and Route 53

I'm trying to get a static site set up using S3 and Route 53 for DNS. I've never used AWS before and my knowledge of DNS records is elementary.
Here's what I've done:
I own the domain metrosndbx.info
I've created a hosted zone in Route 53 for this domain
I've changed the nameservers for my domain to the nameservers given by Route 53 (I did this more than 48 hours ago)
I've added a CNAME record to my hosted zone that points to an S3 bucket: www.metrosndbx.info CNAME http://www.metrosndbx.info.s3-website-us-east-1.amazonaws.com/
My S3 bucket is called www.metrosndbx.info and is set up as a website, with a bucket policy that grants public permission according to the FAQ on Amazon's site.
Yet, my browser can't resolve www.metrosndbx.info. Though I can resolve the endpoint of the bucket: http://www.metrosndbx.info.s3-website-us-east-1.amazonaws.com/
Any ideas why my CNAME doesn't seem to be working. My knowledge of this is very limited, but a look here (http://mxtoolbox.com/SuperTool.aspx?action=a%3awww.metrosndbx.info) seems to return a CNAME record that looks right to me. Thanks for your help!
Your CNAME shouldn't contain the protocol. It should be "www.metrosndbx.info.s3-website-us-east-1.amazonaws.com" and not "http://www.metrosndbx.info.s3-website-us-east-1.amazonaws.com/".

Resources