简体   繁体   English

如何将godaddy域链接到在aws上运行的应用程序

[英]How to link godaddy domain with application running on aws

I'm running into this problem trying to link my Godaddy domain with a AWS Elastic ip.I google it and got many documents on how to link a EC2 instance with a domain on Godaddy.I followed following steps : 我正在遇到这个问题,试图将我的Godaddy域名与AWS Elastic ip链接。我谷歌并获得了许多关于如何在Godaddy上链接EC2实例和域名的文件。我按照以下步骤操作:

1: I created a new Elastic ip, and mapped to my instance aws. 1:我创建了一个新的Elastic ip,并映射到我的实例aws。

2: Edit godaddy A(Host) to point to this elastic ip. 2:编辑godaddy A(主持人)指向这个弹性ip。

在此输入图像描述

But when i am pointing to my domain name ie http://example.com it is showing my Jboss server console.I find and got that the war file name should be ROOT.war but i am running multiple application on same server so how can i point this domain to my specific application like " http://MyExample/index.jsp " 但是,当我指向我的域名,即http://example.com时,它显示我的Jboss服务器控制台。我发现并得到war文件名应该是ROOT.war但是我在同一台服务器上运行多个应用程序所以如何我可以将此域名指向我的特定应用程序,例如“ http://MyExample/index.jsp

You can simply use any reverse proxy server like Nginx and create a configuration there to map the domain to the application running on the server. 您可以简单地使用任何反向代理服务器(如Nginx)并在那里创建配置,以将域映射到服务器上运行的应用程序。

Assuming your application is running on 127.0.0.1 at port 8081 on the server then nginx config would have something like 假设您的应用程序在服务器上的端口8081上的127.0.0.1上运行,那么nginx配置将具有类似的功能

proxy_pass http://127.0.0.1:8081;

Use an application load balancer! 使用应用程序负载均衡器! Avoid NGINX for reverse proxying like a curse especially if you're going to down stream to an elastic load balancer that is fronting an elastic beanstalk. 避免使用NGINX进行反向代理,就像诅咒一样,特别是如果你要下游到一个弹性负载平衡器,这是一个弹性的豆茎。

Because you really should be removing your EC2 instance and running elastic beanstalks for your apps anyway :P 因为你真的应该删除你的EC2实例并为你的应用程序运行弹性beanstalks:P

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

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