配置 apache 2 虚拟主机 - akamai 问题
通常我设置 Apache2 虚拟主机没有问题。然而,在这种情况下,域是通过 Akamai 配置的,而不是普通的 DNS 记录,并且 apache 显示的是默认站点,而不是我为所需子域配置的站点。
换句话说,我已经配置了虚拟主机 test.domain.com,但是当我访问 http 时,Apache 显示的是默认主机://test.domain.com/,我猜这是因为 Apache 没有收到来自 test.domain.com 的请求,而是来自 Akamai 网络上其他地方的请求。
如何找出虚拟主机的正确配置应该是什么?
Normally I have no problems setting up Apache2 virtual hosts. However, in this case the domain is configured via Akamai rather than the normal DNS record, and apache is displaying the default site rather than the one I have configured for the required subdomain.
In other words, I have configured a virtual host test.domain.com, but Apache is displaying the default one when I go to http://test.domain.com/, and I guessing this is because Apache is not receiving the request from test.domain.com but from something else on the Akamai network.
How do I find out what the correct configuration of the virtual host should be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的主域(在本例中为 test.domain.com)需要配置为 akamai 网络 (test.domain.com.edgesuite.net) 的 CNAME,然后您需要一个原始主机名,例如 origin-test.domain .com。然后,您需要在 akamai 网络门户上创建一个“边缘主机名”,然后在 HTTP 网络上创建一个配置来响应该数字资产 (test.domain.com)。 Akamai 可以配置为转发请求域 (test.domain.com) 或主机标头中的原始转发域 (origin-test.domain.com)。无论哪种方式,你都应该设置你的 Apache 虚拟主机来回答这两个问题:
Your main domain (in this case test.domain.com) needs to be configured as a CNAME to the akamai network (test.domain.com.edgesuite.net), and then you need an origin hostname such as origin-test.domain.com. Then you need to create an "Edge Hostname" on the akamai network portal and then a configuration on the HTTP network to answer for that digital property (test.domain.com). Akamai can be configured to forward the requesting domain (test.domain.com) or the origin forward domain in the Host header (origin-test.domain.com). either way you should setup your Apache Virtualhost to answer for both by doing