0

I have two servers on different ports of the same IP address, one on IP:80, and the other on IP:1034. I have a domain example.com, and I want to link IP:80 to www.example.com, and also want to like IP:1034 to dupe.example.com. My domains are registered with Route53, and I am using an A record for example.com, linking it to IP, and when I go to example.com I see my server working. I tried using an SRV record on AWS, and he is my configuration: Configuration

At the bottom, it says the format is: [priority] [weight] [port] [server host name], which is what I entered. The server does not seem to load on dupe.domain.com. What am I doing wrong?

Thank you so much!

1

You can't use SRV with HTTP and HTTPS. The protocols do not support SRV. SRV was invented after the web and the spec for SRV specifically says that protocols must explicitly state that they want to use it. Old protocols (such as HTTP) won't be able to use it.

It doesn't matter how you create SRV records at Amazon because you won't be able to use them for your website.

The usual way to solve your problem is to create two virtual hosts on the server running on port 80. For the subdomain, the virtual host can run a reverse proxy to get the content from the other port.

1
  • Thanks! I will take a look at that and see if there is anything else I am struggling with. Aug 27 '20 at 15:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.