Kaushal Mewar
Kaushal Mewar

Reputation: 13

Magento - AWS load balancing

I am planning to host my magento store in the aws, through reading documentation and doing research i am like almost done with the architecture : 3 EC2 instances with DB MySql. 1 ELB

I have registered all 3 instances with the elb and if the hit the DNS(A record) of elb its even distributing to all three instances, but the problem i am facing is as soon as the load balancer lands me to any particular ec2 instance the url address changes to the ip address of that particular ec2 instance which actually should not happen and i don't want it to happen.

Please guys help me out with this.

Upvotes: 1

Views: 1026

Answers (1)

Tom
Tom

Reputation: 2888

change the web/unsecure/base_url and web/secure/base_url settings in magento to the ELB DNS name (or to any alias you recorded to this DNS name). your instances are redirecting you to these urls after the ELB, which by default seems to be the dns name of the instance, and they should redirect to the ELB instead.

One good point from Rodrigo M also: for security purposes, your instances should only communicate to the ELB subnet.

Upvotes: 1

Related Questions