简体   繁体   English

通过1and1将heroku应用程序指向域

[英]Pointing heroku app to domain via 1and1

Does anyone have any experience in pointing their app on heroku to a domain name through 1and1 uk? 有没有人有通过1and1 uk将其Heroku上的应用程序指向域名的经验?

Normally I use reg 123 and can add a CNAME entry but this doesn't seem possible with 1and1 (unless setting up a subdomain? not sure if this is correct) 通常我使用reg 123并可以添加一个CNAME条目,但是使用1and1似乎无法实现(除非设置了子域?不确定这是否正确)

In a nutshell when accessing mydomain.co.uk i would like it to serve my heroku application 简而言之,当我访问mydomain.co.uk时,我希望它可以为我的heroku应用程序提供服务

Thanks 谢谢

This might be a bit late to the party but i'm currently trying to use my domain through 1&1 to connect to my pythonanywhere app. 这对聚会来说可能有点晚了,但是我目前正试图通过1&1使用我的域来连接到我的pythonanywhere应用程序。

As i currently understand it you register your domain so: 据我目前了解,您注册了域名,因此:

domain.co.uk but then you need to create a subdomain like: domain.co.uk,但是您需要创建一个子域名,例如:

www.domain.co.uk www.domain.co.uk

Then you can go into your subdomain www.domain.co.uk and then edit dns settings, and select CNAME and enter the CNAME that is given for your app. 然后,您可以进入子域www.domain.co.uk,然后编辑dns设置,然后选择CNAME,然后输入为您的应用指定的CNAME。

Also to note that you need to make sure your subdomain matches what you have in your app, so if you want www.domain.co.uk then your webapp needs to reflect this. 还要注意,您需要确保您的子域与您的应用程序中的内容匹配,因此,如果要使用www.domain.co.uk,则您的Web应用程序需要对此进行反映。 If you create a subdomain called site.domain.co.uk then your webapp needs to be site.domain.co.uk 如果您创建一个名为site.domain.co.uk的子域,则您的Web应用程序必须为site.domain.co.uk

It definitely is not the most user-friendly site but i'm waiting for my changes to propagate and will hopefully work! 它绝对不是最人性化的网站,但我正在等待我的更改传播,并有望成功! If not i've seen other sites and will probably switch as godaddy looks more friendlier to setup. 如果没有,我还看过其他网站,可能会切换,因为Godaddy看起来更友好地进行设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM