我创建了一个域名为“ local-dev.com”的托管区域。在此域中,如果我向test.local-dev.com或test-dev.local-dev.com注册任何应用程序,则可以正常工作。但是,如果指定test.prod.local-dev.com,则会启动应用程序,但要求我单击“继续”或单击“高级选项”继续。如何处理此通配符条目。
答案 0 :(得分:1)
一条记录:mysite.com-> ipaddress
CName:sub.mysite.com-> mysite.com
如果您的IP地址发生变化,则只需更新A记录。
在apache内将sub.mysite.com路由到正确的文件夹。 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>