如何 link 一个 jupyter notebook 的 Amazon EC2 实例到 Namecheap 子域?
How to link an Amazon EC2 instance of a jupyter notebook to a Namecheap subdomain?
我需要一些帮助来将新创建的 Amazon EC2 实例链接到 Namecheap 子域。出于这个问题的目的,我们假设我的网站名为 example.com。目前,example.com 链接到一个 Github 页面(我已经为这些 instructions). I now want to create a subdomain called notebook.example.com, which should point to my EC2 instance that is exposing a Jupyter Notebook (which I created per these instructions 添加了两条 A 记录和一条 CNAME 记录)。到目前为止,我已经:
- 创建了一个弹性 IP 地址并将其分配给 EC2 实例(假设它是 55.101.38.114)。
- 在 Route 53 中,我创建了一个托管区域(none 已存在)并创建了一个记录集,名称="notebook",类型 A,值=55.101.38.114。
这就是我卡住的地方。在 Namecheap 上,我创建了一个 URL Redirect Record with Host=notebook 和 value=https://55.101.38.114:8888/ with masking, but when I type https://notebook.example.com,它在 "Connecting ..." 上挂断并最终说 "This site cannot be reached." 我哪里出错了?
编辑:
我几乎通过连接到 http://notebook.example.com instead of https://notebook.example.com. Also, I am able to connect if I turn off masking. Is there any way I can still connect with masking? I'd like to see the jupyter notebook at notebook.example.com rather than it redirecting to https://55.101.38.114:8888/ 回答了自己的问题。
编辑 #2:
Route53 设置
Namecheap 设置(我删除了 URL 重定向)
解决方案是在 Namecheap 中为来自 Route 53 的名称服务器添加 NS 记录。我还使用 EC2 实例的弹性 IP 在 Namecheap 中添加了一条 A 记录。我仍然必须指定要连接的端口 (notebook.example.com:8888)。
Namecheap 应该是这样的:
感谢@JohnRotenstein。
我需要一些帮助来将新创建的 Amazon EC2 实例链接到 Namecheap 子域。出于这个问题的目的,我们假设我的网站名为 example.com。目前,example.com 链接到一个 Github 页面(我已经为这些 instructions). I now want to create a subdomain called notebook.example.com, which should point to my EC2 instance that is exposing a Jupyter Notebook (which I created per these instructions 添加了两条 A 记录和一条 CNAME 记录)。到目前为止,我已经:
- 创建了一个弹性 IP 地址并将其分配给 EC2 实例(假设它是 55.101.38.114)。
- 在 Route 53 中,我创建了一个托管区域(none 已存在)并创建了一个记录集,名称="notebook",类型 A,值=55.101.38.114。
这就是我卡住的地方。在 Namecheap 上,我创建了一个 URL Redirect Record with Host=notebook 和 value=https://55.101.38.114:8888/ with masking, but when I type https://notebook.example.com,它在 "Connecting ..." 上挂断并最终说 "This site cannot be reached." 我哪里出错了?
编辑:
我几乎通过连接到 http://notebook.example.com instead of https://notebook.example.com. Also, I am able to connect if I turn off masking. Is there any way I can still connect with masking? I'd like to see the jupyter notebook at notebook.example.com rather than it redirecting to https://55.101.38.114:8888/ 回答了自己的问题。
编辑 #2:
Route53 设置
Namecheap 设置(我删除了 URL 重定向)
解决方案是在 Namecheap 中为来自 Route 53 的名称服务器添加 NS 记录。我还使用 EC2 实例的弹性 IP 在 Namecheap 中添加了一条 A 记录。我仍然必须指定要连接的端口 (notebook.example.com:8888)。
Namecheap 应该是这样的:
感谢@JohnRotenstein。