Deploying website on Vercel with Route53 subdomain - deployment

I am trying to deploy my Next.js web app on Vercel with Route53. But I am already using my root domain with main service which is example.com.
I used to deploy with subdomin inside of example.com hosted zone, which is subdomain.example.com.
But I had to add server, cdn, and other 2nd level subdomain like server.subdomain.example.com. So I created a new hosted zone for subdomain.example.com on Route53 and connected with root domain.
So I am trying to add subdomin.example.com on Vercel, but if I add this domain to Vercel project settings, they only get root domain current nameservers.
Is there anyway to add Route53 hosted zone domain to Vercel?

Related

Route 53 hosted zone google domains multiple aws accounts

I'm having a domain in Google Domains, but I use custom nameservers from route 53 hosted zone. It was working fine. I first made my app in staging environment. It was working fine. (I used cloudfront)
Now that I set up prod environment (in a different AWS account), I created another hosted zone, and added those nameservers too at google domains.
Now staging is broken.
How to solve this issue? I want my domain to be accessible from both environments (accounts), but it seems like it's one or the other.
The ideal behaviour would be both hosted zones are working properly.

My custom domain is redirecting to appname.cfapps.io but after redirecting URL is changing to appname.cfapps.io instead of my custom domain

I have a project deployed in cloud foundry(Pivotal Web Services). It has given domain name as appname.cfapps.io. I want to change the cloud foundry URL to my custom domain. So i registered a domain in namecheap.com. Then added my site in cloudfare and then added two DNS names of cloudfare to my namecheap account.
Then i used below three commands to redirect my new domain to cloud foundry domain.
$cf create-domain myorg mydomain.com
$cf map-route myapp mydomain.com -n myapp
$cf map-route myapp mydomain.com -n www
Now, my new domain name is redirecting to cloud foundry domain name. But the issue is after entering my new domain name, it is redirecting to my website but my URL is getting changed from "My new domain name" to "appname.cfapps.io"
Any help is appreciated.
What kind of records do you have in Cloudflare and where do they point to? I have the same setup for one of my sites and I used two CNAME records and it all works just fine.

Domain URL is not resolving Openshift router

I have setup an application in openshift and it is accessible through https://test-uat-ex.com which is a route for the application in openshift.
I have registered a domain called example.com and added https://test-uat-ex.com as a CNAME record to newly registered domain.
I am able to access the application using openshift route URL. But, when I access the newly created domain call example.com, I am getting
Service unavailable 503 error.

Plesk and domain hosted externally

I have two hosting accounts (Personal one and a work one). I am doing some testing and would like to create a subdomain of a work domain (manage.domain.com) and host it on my personal account. Currently, my personal host is through 1and1 and is dedicated while the work one is shared with GoDaddy.
Work
I have gone into go daddy and created the subdomain. I have also added DNS records such as A, AAAA AND NS (i did not record a CNAME). I have noticed that if is type manage.domain.com it is redirecting to my personal server. However, it is directing to the blank admin page of the root of the server (which is maintained using Plesk).
Personal
Using Plesk I added the website (domain.com) and created the subdomain (manage.domain.com). I have also updated the websites hosting access using Plesk and assigned it the default values of my personal account. Using Plesk I also set the subdomain to the particular location of the files I want to test. However, I cannot get my server to recognize the address and redirect it to the proper location.
Any help is greatly appreciated!
J
You can just create:
in personal account domain(not subdomain) manage.domain.com
on domain.com add DNS record of type A, name "manage" and IP address of personal hosting:
After that "manage.domain.com" will resolving to hosting of your personal account and can be accessed because such domain exists.
I figured it out
What i did above was correct expect do not change the name servers on the work DNS(godaddy).
Add the website to plesk - it will give you an error about not being able to control the DNS settings which you have already adjusted on the original server (godaddy)
Add a subdomain of the website.
*** Ensure the subdomain is pointed to the correct folder within your server
Done

Mapping AWS route 53 recordset to godaddy

I'm new to Amazon.
My client hosted their website www.domain.com at godaddy and
they have created the aws ec2 instance and running their Django apps in this instance.
Now they wants to use this instance for subdomain. say www.subdomain.domain.com
So I have created a record set in aws route 53 by following procedure.
Created Recordset A pointing to elastic IP
Created Nameserver (NS)
Finally added this recordset into godaddy dns files. Still I'm not able to access this subdomain. Please can anyone help here.
Are you managing DNS through AWS?
If so..
You need to create a DNS Zone for that domain.
Add the records or import the ZONE file
Take the Name Server records from AWS
Go to the domain registrar(assuming you manage this also), in this case GoDaddy!
Point the Name Server records from AWS to GoDaddy!