A A
asked on
redirect permanent page from existing website on 2 aws ec2 apache servers behind loadbalancer to different domain
HI experts
I have website hosted on 2 apache ec2 aws servers behind loadbalancer to rds and like to redirect permanent page from website hosted on 2 aws ec2 apache servers to different domain URL website
how can I do that on both servers and test that it is working on any of 2 ec2 aws apache servers and with load balancer availability
I have website hosted on 2 apache ec2 aws servers behind loadbalancer to rds and like to redirect permanent page from website hosted on 2 aws ec2 apache servers to different domain URL website
how can I do that on both servers and test that it is working on any of 2 ec2 aws apache servers and with load balancer availability
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're welcome!
You asked, "How can I do test on each server individually without removing them from load balancer".
This may or may not be possible.
Let's see... how best to say this...
1) To test a backend server, you must test the IP.
2) If the IPs are public IPs, this is fairly easy, just target the IPs.
You'll do this... likely something similar to... the curl command above...
3) Now's where it gets complex...
If the backend's don't support SNI, then there will be trouble.
If the backend does support SNI, then you'll pass a Header targeting the host you require.
4) Also, if the IP is LAN only, then you can only test on an IP on the same LAN segment.
Suggestion: If you get stuck, just open another question + someone can assist.
This may or may not be possible.
Let's see... how best to say this...
1) To test a backend server, you must test the IP.
2) If the IPs are public IPs, this is fairly easy, just target the IPs.
You'll do this... likely something similar to... the curl command above...
3) Now's where it gets complex...
If the backend's don't support SNI, then there will be trouble.
If the backend does support SNI, then you'll pass a Header targeting the host you require.
4) Also, if the IP is LAN only, then you can only test on an IP on the same LAN segment.
Suggestion: If you get stuck, just open another question + someone can assist.
ASKER
How can I do test on each server individually without removing them from load balancer