简体   繁体   English

如何设置AWS Route 53以处理EC2单实例域

[英]How do I set up AWS Route 53 to handle an EC2 single instance domain

I have thoroughly reviewed both the Amazon Web Services documentation and many Stackoverflow posts related to my issue, but have not yet resolved it. 我已经彻底检查了Amazon Web Services文档以及与我的问题有关的许多Stackoverflow帖子,但尚未解决。 My situation: 我的情况:

I have successfully set up: 我已经成功设置:

  1. an EC2 t2.micro instance with elastic IP, running Ubuntu 14.04.01 / Apache2 / PHP / MySQL (LAMP) 运行Ubuntu 14.04.01 / Apache2 / PHP / MySQL(LAMP)的具有弹性IP的EC2 t2.micro实例
  2. WordPress 4.5 as a content management system WordPress 4.5作为内容管理系统
  3. CiviCRM 4.1 as a constituent management app CiviCRM 4.1作为成分管理应用程序

I am able to access and run this configuration with the public DNS linked to the Elastic IP. 我可以使用链接到弹性IP的公共DNS来访问和运行此配置。 I have a custom domain (mydomain.org) registered through Amazon Route 53 and have set up the necessary record sets (A, CNAME) to connect both mydomain.org and www.mydomain.org to the EIP. 我有一个通过Amazon Route 53注册的自定义域(mydomain.org),并设置了必要的记录集(A,CNAME)以将mydomain.orgwww.mydomain.org都连接到EIP。 This configuration, accessed with HTTP, correctly serves the base page of the app, and I see what I expect from WordPress, with mydomain.org showing in the browser address window. 通过HTTP访问的此配置正确地为应用程序的基础页面提供了服务,并且我看到了WordPress的期望,并且mydomain.org显示在浏览器地址窗口中。

When I navigate to any other page, it breaks. 当我导航到其他任何页面时,它都会中断。 I see the page, but the displayed URL is that of the EIP public DNS, not my custom domain. 我看到了页面,但是显示的URL是EIP公共DNS的URL,而不是我的自定义域。 I suspect that rewriting the URL in the Virtual Hosts section of my provide a solution, but I haven't been able to determine the proper statements. 我怀疑重写“我的虚拟主机”部分中的URL可以提供解决方案,但是我无法确定正确的语句。

Further, I need to have this configuration support TLS / HTTPS. 此外,我需要此配置支持TLS / HTTPS。 I have successfully obtained and installed the necessary certificates and set them up in my server configuration. 我已经成功获取并安装了必要的证书,并在我的服务器配置中进行了设置。 I have edited the ssl.conf Virtual Hosts file, and have even been able, using HTTPS to successfully navigate to the base page of WordPress. 我已经编辑了ssl.conf虚拟主机文件,甚至能够使用HTTPS成功导航到WordPress的基础页面。 It shows the basic HTML of the page, but all of the script driven formatting is missing. 它显示了页面的基本HTML,但是缺少所有脚本驱动的格式。 Again, navigating to any other page of the app breaks the TLS by using the EIP URL, not my custom URL. 同样,导航到应用程序的任何其他页面都使用EIP URL而不是我的自定义URL来破坏TLS。

I suspect the same solution to the initial issue will fix this issue, as well. 我怀疑最初问题的相同解决方案也可以解决此问题。

Thank you, in advance, for your advice and suggestions. 预先感谢您的建议。

Bruce P pointed me in a good direction. 布鲁斯·P为我指明了正确的方向。 I checked VirtualHosts in my .conf file; 我在.conf文件中检查了VirtualHosts。 found it OK. 觉得还可以。 Looked for httpd.conf without success, and reviewed my WordPress configuration, which is where I found the problem. 寻找httpd.conf失败,并查看了我的WordPress配置,这是我发现问题的地方。 The server information was not updated to reflect the changed URL. 服务器信息未更新以反映更改的URL。 When I did that, all significant problems were resolved. 当我这样做时,所有重大问题都得到解决。 Thanks, again, to Bruce P for pointing me in a good direction. 再次感谢Bruce P向我指出正确的方向。

DVH DVH

暂无
暂无

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

相关问题 如何使用 CloudFront 为 EC2 实例 (Wordpress) 设置 SSL - How to set up SSL with CloudFront for EC2 Instance (Wordpress) 在AWS EC2 Bitnami Wordpress实例中创建子域 - Creating a sub-domain in AWS EC2 Bitnami Wordpress instance AWS Route53将wordpress子目录路由到不同的EC2实例 - AWS Route53 routing wordpress subdirectories to different EC2 instances 是否可以在单个EC2 T1.micro实例上在AWS ElasticBeanstalk中安装多个wordpress设置? - Can I insall multiple wordpress setups in AWS ElasticBeanstalk on single EC2 T1.micro instance? 如何让一个AWS子域网站指向另一个托管wordpress的EC2实例? - How can I have a AWS subdomain website point to another EC2 instance which hosts wordpress? 什么是 AWS 中 wordpress 的良好架构,目前我在 EC2 实例中使用它,并且数据库在本地作为 docker 容器启动? - What will be a good architecture for wordpress in AWS, Currently i have it in an EC2 instance and database is locally spin up as a docker container? 如何为AWS Ec2 WordPress实例启动PhpMyAdmin或MySQL Workbench? - How to launch PhpMyAdmin or MySQL Workbench for an AWS Ec2 WordPress instance? Amazon Web Services-EC2:如何停止将ip地址显示为域的WordPress网站? - Amazon Web Services - EC2: How do I stop my WordPress site showing the ip address as the domain? PhpMyadmin 不适用于 AWS EC2 实例 - PhpMyadmin not working on AWS EC2 instance 在AWS EC2上设置SSL - Setting up SSL on AWS EC2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM