mysterious redirecting
Our server is mysteriously redirecting any URL like this:http://{any_domain}/modules/{any_existing_dir}
To here:
http://testing.installatron.com/sugarcrm1/index.php
As an example, if you click this link it will redirect you to that sugarcrm1 url (which doesn't exist):
http://www.liquenox.com/modules/rowan/
--
This is a Red Hat Enterprise Linux ES release 3 server, DirectAdmin control panel. Apache 1.3.34 and PHP 4.4.0. Everything up to date, recompiled, and rebooted.
--
Some things we've found:
When a redirect happens, it is listed in the apache log as such:
Code:
{ip} - - [{time}] "GET /modules/rowan/ HTTP/1.1" 302 316
We've noticed that the redirection only occurs when there are no files in that last directory, or when it is a .php file that should be loaded. For example, these _do not_ redirect:
http://www.liquenox.com/modules/rowan/ (when there is an index.html in the dir)
http://www.liquenox.com/modules/rowan/anything.html
http://www.liquenox.com/modules/rowan/anything.asp
http://www.liquenox.com/modules/rowan/anything.txt
http://www.liquenox.com/modules/anything/ (where 'anything' does not exist as a directory)
http://www.liquenox.com/modules/
http://www.liquenox.com/modules/anything.anything
But these _do_ redirect:
http://www.liquenox.com/modules/rowan/ (when nothing in the dir)
http://www.liquenox.com/modules/rowan/ (when there is an index.php in the dir)
http://www.liquenox.com/modules/rowan/index.php
http://www.liquenox.com/modules/rowan/anything.php
http://www.liquenox.com/modules/anything/ (where 'anything' does exist as a directory)
The directory that is being redirected to (http://testing.installatron.com/sugarcrm1/index.php) does not exist on the server. It used to exist on this server, but was deleted a while ago. There was nothing special about that location when it did exist.
A complete file-by-file harddrive search turned up NO occurance of "sugarcrm1" in any file.
A complete file-by-file harddrive search turned up NO occurance of "modules" in any file that did not have a known purpose.
We've searched all the httpd.conf files on the server and found nothing that would do this.
--
We're at a bit of a loss to explain this behavior, and I wondered if anyone had come across something similar before?
Thanks.