Forum Moderators: phranque

Message Too Old, No Replies

Unwanted redirect

         

fuzzlog

6:34 pm on May 22, 2008 (gmt 0)

10+ Year Member



At my company, we have two Apache 2.0 hosted sites, let's call them site1 and site2. Both sites are specified as VirtualHost with their respective parameters in http.com and both sites had been working correctly until yesterday. Now, seemingly without reason, when someone tries now to access site2, it redirects to site1.

No obvious changes have been made to the http.conf file.

I assume that this is a server-based redirect because it happens regardless of what site2 document is entered in the browser's address bar.

I've also checked site2's php code and there are no obvious redirect commands troughout the site.

However, I'm not an Apache admin or a php programmer.

Anybody know of any other server-related places where the redirect can be specified?

Any help will be greatly appreaciated.

Fausto

jdMorgan

9:48 pm on May 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are many places, httpd.conf, conf.d, and many others.

Why not do a search on the server for all files above document root that changed between yesterday and the day before? Somebody changed something -- This kind of thing does not happen because of magic...

Jim

fuzzlog

10:19 pm on May 22, 2008 (gmt 0)

10+ Year Member



I'm glad to hear that, there's nothing worse that a bunch of faeries springkling pixie dust on my code.... The problem is semi-fixed now. After extensively comparing current files with backed up files (for apache, and the affected php websites) nothing was found to be amiss. The most likely reason for this particular issue is that someone in the network admin group changed a DNS mapping and did not fess up about it when it was brought up. This was partially confirmed when one of the admins changed the VirtualServerName for site2 with that of a hardcoded IP and it all worked wonderfully.... too bad he pointed it to our test server not our live one .... oh the hillarity!

Anyway, thanks for your input.