Amazon ELB and use of address / server names across multiple servers
Posted
by
Stpn
on Server Fault
See other posts from Server Fault
or by Stpn
Published on 2012-10-16T22:56:23Z
Indexed on
2012/10/16
23:02 UTC
Read the original article
Hit count: 274
I am setting up Nginx servers behind the ELB. I set up so that api.app.com points to an ELB. I wonder which addresses I should use for remote connections, Nginx settings etc..
1) For example, in Nginx:
Should I do
server {
listen 80;
#What is the right line here:
# server_name <WWW.NAME.COM> OR <ec2-.....compute-1.amazonaws.com> OR <MLB-....amazonaws.com>?;
passenger_enabled on;
.....
}
2) I connect servers behind ELB to remote Postgres database. In Postgres settings should I open the ELB address (MLB-...amazonws.com) or to individual EC2 IPs?
© Server Fault or respective owner