我使用AWS CloudFormation创建了一个Wordpress博客,然后从GoDaddy网站购买了一个域名并将其转发到CloudFormation提供的域名
-
godaddy domain:yetanotherdeveloper.in
-
cloudformation domain:"ec2-35-154-134-194.ap-south-1.compute.amazonaws.com/wordpress/"
Problem 1: 当我在URL中搜索GoDaddy域时,我到达该站点,但只有CloudFormation域显示在URL中 . 我希望GoDaddy域名存在 . 当我打开帖子时,在URL中的斜杠之前,会显示cloudformation域 . (例如 ec2-35-154-134-194.ap-south-1.compute.amazonaws.com/wordpress/index.php**/2017/09/27/hello-world/**
) . 我希望godaddy域名在那里以方便其他人访问 .
Problem 2: Cloudformation使用公共IP,如果服务器停机等,将来可能会有危险 . 所以,我也希望将IP更改为弹性IP .
This is after the site is loaded,i get old domain shown
This is when i open some other page or in this case, a post. Here also old domain
最后一件事,我希望我不会浪费你的很多时间 . 如果我是,那么指出我在这个问题上做错了什么会很好,下次我会改进 .
谢谢!
2 回答
关于URL,您需要将WordPress配置的根URL设置为http://yetanotherdeveloper.in,关于弹性IP,您需要更新Cloudformation模板以创建EIP并将其链接到创建的实例 . 最好的祝福 .
您可能需要在WordPress配置中使用change your site URL: