Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 xxx.xxx.xxx.xxx/v_host1 and xxx.xxx.xxx.xxx/v_host2

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

1 Answer 1

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

 
discard

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.