简体   繁体   English

什么会导致 apache 从本地 IP 重定向到远程 IP 地址

[英]What would cause apache to redirect from a local IP to a remote IP address

Here's a scenario that I can't figure out;这是我无法弄清楚的情况; I simply can't understand why an slightly oldish webserver (totally inactive/powered-off for 2y) is behaving this way.我根本无法理解为什么一个稍微陈旧的网络服务器(完全不活动/关闭 2 年)会以这种方式运行。 I MUST be overlooking something quite simple.必须忽略一些非常简单的事情。

Specifically, when i try to access an Apache instance on Centos 7 residing on my local network (192.168.2.XXX), the apache page responds just fine (Testing 1,2,3; Yay).具体来说,当我尝试访问 Centos 7 上的 Apache 实例时,ZB6EFD606D118D0F622CC,66E31419FF0 Watching the access logs on this simple request shows up fine.观察这个简单请求的访问日志显示很好。 On this same machine, I have four additional paths set up.在同一台机器上,我设置了四个附加路径。 One for example is a locked down phpMyAdmin that is accessible only from an internal IP.例如,一个锁定的 phpMyAdmin 只能从内部 IP 访问。 This route works fine, and the databases can be browsed, etc. Yet, for the other route, such as a wordpress installation or a route to a Magento instance, the the request comes up on the access log (no error log entry), and then just sits there.此路由工作正常,并且可以浏览数据库等。但是,对于其他路由,例如 wordpress 安装或到 Magento 实例的路由,请求出现在访问日志中(没有错误日志条目),然后就坐在那里。 When the request finally times out, the URL in the browser changes to a new ip address (ABC.XXX.YYY.ZZZ), and then terminates any efforts.当请求最终超时时,浏览器中的 URL 将更改为新的 ip 地址(ABC.XXX.YYY.ZZZ),然后终止任何努力。

Admittedly, the machine WAS originally configured to be outward facing, and my suspicion is that the IP to which the pages revert may have been the public IP last time the machine was alive.诚然,机器最初配置为朝外,我怀疑页面恢复到的 IP 可能是上次机器活着时的公共 IP。 the IP is no longer associated with the site, and the domain which was likely setup with that IP address, is also no longer active. IP 不再与该站点关联,并且可能使用该 IP 地址设置的域也不再活动。

Does anyone have any suggestions as to what I may look at?有人对我可以看什么有任何建议吗? I have combed the httpd configurations and there is nothing resembling any such redirection address.我已经梳理了 httpd 的配置,没有任何类似的重定向地址。 Could there be some DNS data that needs to be flushed?是否有一些需要刷新的 DNS 数据? A network configuration in sysconfig/ that I am overlooking?我忽略的 sysconfig/ 中的网络配置?

It was nothing to do with my apache configuration.这与我的 apache 配置无关。 Everything was related to the site urls that were embedded inside the wordpress and magento installations.一切都与嵌入在 wordpress 和 magento 安装中的站点 URL 相关。 Upon finding and replacing all instances of the site IP address in some configuration tables, I was able to get both applications to respond properly.在某些配置表中找到并替换站点 IP 地址的所有实例后,我能够让两个应用程序正确响应。

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

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