【问题标题】:Used CloudFormation to create Wordpress blog but domain doesn't show up properly使用 CloudFormation 创建 Wordpress 博客,但域未正确显示
【发布时间】:2018-03-12 07:05:12
【问题描述】:

我使用 AWS CloudFormation 创建了一个 Wordpress 博客,然后从 GoDaddy 网站购买了一个域名并转发到 CloudFormation 提供的域名

-->godaddy 域: yetanotherdeveloper.in

-->cloudformation 域: "ec2-35-154-134-194.ap-south-1.compute.amazonaws.com/wordpress/"

问题 1: 当我在 URL 中搜索 GoDaddy 域时,我会访问该站点,但 URL 中只显示 CloudFormation 域。我希望 GoDaddy 域存在。 当我打开帖子时,在 URL 中的斜线之前,会显示 cloudformation 域。(eg ec2-35-154-134-194.ap-south-1.compute.amazonaws.com/wordpress/index.php**/2017/09/27/hello-world/**)。我想要 godaddy 域在那里是为了方便其他人访问。

问题 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

最后一件事,我希望我不会浪费你太多的时间。如果我是,很高兴指出我在这个问题上做错了什么,下次我会改进。

谢谢!

【问题讨论】:

    标签: wordpress amazon-web-services amazon-ec2 dns amazon-cloudformation


    【解决方案1】:

    您可能需要在 WordPress 配置中使用 change your site URL

    在单站点安装的设置->常规屏幕上 WordPress,有两个字段名为“WordPress地址(URL)”和 “网站地址 (URL)”。它们是重要的设置,因为它们控制 WordPress 认为您的网站所在的位置。他们控制显示器 页面管理部分中的 URL 以及前面 结束,并在整个 WordPress 代码中使用。

    【讨论】:

      【解决方案2】:

      关于 URL,您需要将 WordPress 配置上的根 URL 设置为 http://yetanotherdeveloper.in,关于弹性 IP,您需要更新 Cloudformation 模板以创建 EIP 并将其链接到创建的实例。 最好的问候。

      【讨论】:

        猜你喜欢
        • 2017-07-26
        • 1970-01-01
        • 2011-10-07
        • 1970-01-01
        • 2022-11-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-10-05
        相关资源
        最近更新 更多