简体   繁体   中英

How to add record in AWS Route 53 that redirects to 3rd party cloud page?

I have a Hosted zone in AWS Route 53 & using it to host my site with S3. However, I want to add a subdomain that will redirect to a shared page from other cloud providers like Dropbox or Azure.

What I have been trying -

  1. I have a simple file/ pic in a publicly shared folder. I create a shared link from it
  2. In my route 53 i create a new record with CNAME type & insert the generated link
  3. When i hit the created record in browser, i get error -

DNS_PROBE_FINISHED_NXDOMAIN

My Record details are -

53号公路记录

Is it possible to create a record for my usecase using Route 53? If yes, am i missing any steps?

It's not possible to do this with Route53 or DNS. DNS cannot handle HTTP paths and can only resolve domain names to IP addresses (or another domain in the case of CNAME records). So while a CNAME record can redirect to another domain name, it cannot redirect to a specific path on that domain.

You might look into setting up a URL redirect in your webapp or some sort of proxy for this instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM