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 have two IPs mapped on my host: and ("fail over" IP)

I'm working on a website that don't have a domain name for now. I'd like to serve it under until I have a domain name for it.

So, I'd like to create a server block on Nginx that would serve only the requests sent to the fail over IP (Other sites are already configured on the other IP).

Is it possible to do that?

share|improve this question
up vote 3 down vote accepted

You can use listen parameter in server block for that.


server {


server {
share|improve this answer
Great! I'm going to try that! – John Smith Optional Aug 26 '13 at 11:55

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.