Amazon ELB and use of address / server names across multiple servers

Stpn asked:

I am setting up Nginx servers behind the ELB. I set up so that 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 <> OR <>?;
         passenger_enabled on;

2) I connect servers behind ELB to remote Postgres database. In Postgres settings should I open the ELB address (MLB-… or to individual EC2 IPs?

My answer:

The server_name should be set to your web site’s hostname, that people will actually type in.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.