URL http://app.mywebsite.com如何工作?

发布于 2025-02-05 18:28:04 字数 503 浏览 4 评论 0原文

我目前正在开发一个SASS Web应用程序,我想在“ https://app.my-website.example”之类的URL下部署React应用程序。因此,我尝试购买域名“ app.my-website.example”,但显然,域名不能包含”。特点。

如何在“ https://app.my-website.example”?之类

的URL下部署它。在开始。 例如,有关加密货币的网站通常具有传统的静态网站,描述该项目,该项目部署在诸如“ https://website.example”之类的URL上。然后,他们的实际应用程序(确实是事物)将部署在“ https://app.website.example”之类的URL上。

对于大多数Web应用程序也是如此。

如果它可以帮助您回答我,我会使用 AWS Amazon Cloud

顺便说一句,我已经购买了诸如“ my-website.example”之类的域名,并在其上部署了我的静态网站。

I am currently developping a SASS web application, and I want to deploy my react app under an url like "https://app.my-website.example". So I tried to buy the domain name "app.my-website.example", but apparently, domain name cannot contain "." character.

How can I deploy it under an url like "https://app.my-website.example" ?

I have seen quantity of modern websites with url containing "app." at the beginning.
For example, website about crypto usually have a traditional static website describing the project, deployed on an url like "https://website.example". And then, their actual application, which does stuff, is deployed on an url like "https://app.website.example".

This is also true for most web application out there.

I use AWS Amazon cloud if it helps you answer me.

Btw, I have already bought the domain name like "my-website.example" and have deployed my static website on it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

筑梦 2025-02-12 18:28:04

这是解决方案。

因此,我的问题的答案是我需要在主要域内创建一个子域。
我不需要购买其他任何东西来创建子域,因为我已经拥有该域。与购买“ app-mywebsite.com”相比,这是主要优势。另外,Google更容易引用我的应用程序。

在亚马逊上,您需要转到“ Route 53”服务以创建子域,然后将其重定向到您的应用程序。执行此操作的文档在这里:
https://aws.amazon.ar中心/create-subdomain-route-53

Here is the solution.

So the answer to my question is that I need to create a sub domain inside my main domain.
I don't need to buy anything else to create the subdomain, since I already own the domain. It is the main advantage compared to buying "app-mywebsite.com". Plus, it will be easier for google to reference my app.

On amazon, you need to go to the "route 53" service to create the subdomain and then redirect it to you application. The doc to do that is here :
https://aws.amazon.com/premiumsupport/knowledge-center/create-subdomain-route-53

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文