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 a rackspace server running with nginx. I am a newbie to all the server stuff. Let me explain the situation here:

  1. I have an IP address and I have two virtual host on my machine.
  2. I don't have a domain and I don't want to buy any
  3. I want to map it so I can access the website as and

How can I do this the easy way? I am guessing I should change the nginx config of my site... but not sure which one to change.

share|improve this question

I'm not sure if this works, but have a look at this: Mixed IP and Name Based Virtual Hosts with nginx

The nginx config file is usually /etc/nginx/sites-enabled/default

share|improve this answer
I looked and there isn't any default in that folder – EquinoX Mar 4 '11 at 1:15
If the /etc/nginx/sites-enabled folder exists, then you can create a file with any file name in that folder and put your config rules there. – ErJab Mar 4 '11 at 23:56

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.