Scenario is like:
I have a domain and also sub-domain and all the records are created within hosted zone (Route53) already. (DevOps guy created)
Now need to create another subdomain without choosing a different server (IP).
I have tried creating record set within the hosted zone using A and the same IP as for the other sub-domain, didn't work. Also tried A and ELB in Alias Target but that didn't work either.
If you are directing all of your subdomains to same IP address, you'll have to configure your web server to handle your subdomains differently. For example yourdomain.com, sub1.yourdomain.com and sub2.yourdomain.com will be directed to same IP address but yourdomain.com will run code at path /var/www/html, sub1 will run application at path /var/www/sub1, and sub2 will run code at /var/www/sub2.
It's not Route53, it's your web server that needs to be configured. If you're using Nginx, following article can help you. dev.to/on_stash/configure-nginx-to...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Scenario is like:
I have a domain and also sub-domain and all the records are created within hosted zone (Route53) already. (DevOps guy created)
Now need to create another subdomain without choosing a different server (IP).
I have tried creating record set within the hosted zone using A and the same IP as for the other sub-domain, didn't work. Also tried A and ELB in Alias Target but that didn't work either.
What could be done in such case?
You're saying that you want to create a second subdomain that resolves to the same IP address as the first?
If you are directing all of your subdomains to same IP address, you'll have to configure your web server to handle your subdomains differently. For example yourdomain.com, sub1.yourdomain.com and sub2.yourdomain.com will be directed to same IP address but yourdomain.com will run code at path /var/www/html, sub1 will run application at path /var/www/sub1, and sub2 will run code at /var/www/sub2.
It's not Route53, it's your web server that needs to be configured. If you're using Nginx, following article can help you.
dev.to/on_stash/configure-nginx-to...