我可以使用Heroku在自定义域的路径上托管Web应用程序吗? [英] Can I use Heroku to host a web app on a path of my custom domain?

查看:70
本文介绍了我可以使用Heroku在自定义域的路径上托管Web应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在Weebly托管一个个人网站,该域名是通过NameCheap购买的.我正在创建一个仅显示图表/表格的小烧瓶Web应用程序,我很可能会使用Heroku进行部署.无论如何,只要有人访问我的域的特定路径,我是否可以使Web应用程序显示?

I have a personal website currently hosted on Weebly and the domain was bought on NameCheap. I'm creating a little flask web app that just displays a graph/table and I'm most likely going to use Heroku to deploy it. Is there anyway that I can make the web app display whenever someone visits a specific path of my domain?

我想我可以重定向到heroku提供的网址,但我希望将其保存在我的域中.

I guess I could just redirect to the url provided by heroku, but I would rather have it on my domain.

推荐答案

简短答案:是.此处有一篇文章介绍了如何执行此操作: https://devcenter.heroku.com/articles/自定义域.基本上,您需要将自定义域添加到heroku(在仪表板中:设置->域),然后重新配置目标域的DNS,以便它将解析为您的heroku应用.

Short answer: Yes. There is an article explaining how to do this here: https://devcenter.heroku.com/articles/custom-domains . Basically, you need to add the custom domain to heroku (in the dashboard: settings -> domains) and reconfigure the DNS of the target domain so that it will resolve to your heroku app.

这篇关于我可以使用Heroku在自定义域的路径上托管Web应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆