Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ( or to individual EC2 IPs?

share|improve this question

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.