Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirect mystery

Status
Not open for further replies.

paul2791

Technical User
Joined
Sep 27, 2006
Messages
2
Location
US
I have a farm of servers, each has a virtual host set up for a domain, blah.com, and i am trying to set up redirect for it to go to newblah.com.
on one host it is .

<VirtualHost 192.168.11.65 192.168.11.22>
ServerAdmin blag@blah.com
DocumentRoot /export/htdocs/blah
Redirect permanent / ServerName blah.com
DirectoryIndex default.php index.php

</VirtualHost>

on another
<VirtualHost 192.168.11.75 192.168.11.22>
ServerAdmin blag@blah.com
DocumentRoot /export/htdocs/blah
Redirect permanent / ServerName blah.com
DirectoryIndex default.php index.php

</VirtualHost>

Now this works fine if i use the first ip
or

However if i use the second ip
it does not redirect and shows the page from the old directory.

Nothing is cached, as i have made changes to index.php in the old site and see it when i use the second IP.

my problem is, it is the second ip, .22 that is used by the Load balancer to access pages from the internet. So how do i get page requests of 11.22 to redirect ??
Paul is online now Edit/Delete Message
 
Will RedirectPermanent Do what you want?

 
Yes, i think so. Because when I use the first ip, I get exactly the result I expect and want. It is only when i use the second, virtual IP, ( mapped to all servers) that i dont get redirected.

I have a feeling it is not an apache prob , but rather a config issue on the load balancer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top