user10300554
user10300554

Reputation:

handle wildcard in domain mapping route53

I have created a hosted zone with domain name "local-dev.com". In this domain if i register any application with test.local-dev.com or test-dev.local-dev.com it works fine. But if specify test.prod.local-dev.com then application is launched but it asks me to click on proceed or click on advanced option to proceed. How to handle this wildcard entries.

Upvotes: 0

Views: 229

Answers (1)

mbunch
mbunch

Reputation: 569

A Record: mysite.com -> ipaddress

CName: sub.mysite.com -> mysite.com

If your ip address ever changes, you will only need to update your A Record.

Within apache route the sub.mysite.com to the correct folder. https://httpd.apache.org/docs/2.4/vhosts/examples.html

<VirtualHost *:'the port of your node application'>
    DocumentRoot "/www/example1"
    ServerName www.example.com

    # Other directives here
</VirtualHost>

Upvotes: 1

Related Questions