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
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