virtual host in one ip address
Alex H
aditya15417 at hotmail.com
Fri Mar 4 09:17:33 MSK 2011
Where is this config file that I need to edit?
From: igor at sysoev.ru
Date: Fri, 4 Mar 2011 09:15:26 +0300
To: nginx at nginx.org
Subject: Re: virtual host in one ip address
On Mar 4, 2011, at 9:10 , Alex H wrote:Is this on the default of the nginx.conf?
I do not know what do you mean by default. The whole configuration is like
http { server { location /v_host1/ { } location /v_host1/ { } }}
That's all.
From: igor at sysoev.ru
Date: Fri, 4 Mar 2011 09:01:33 +0300
To: nginx at nginx.org
Subject: Re: virtual host in one ip address
On Mar 4, 2011, at 7:22 , Alex H wrote:I have a rackspace server running with nginx. I am a newbie to all the server stuff. Let me explain the situation here:I have an IP address and I have two virtual host on my machine.I don't have a domain and I don't want to buy oneI want to map it so I can access the website as xxx.xxx.xxx.xxx/v_host1 and xxx.xxx.xxx.xxx/v_host2How 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.server { location /v_host1/ { root /path/to/v_host1; } location /v_host2/ { root /path/to/v_host2; }
--
Igor Sysoev
http://sysoev.ru/en/
_______________________________________________ nginx mailing list nginx at nginx.org http://nginx.org/mailman/listinfo/nginx_______________________________________________
nginx mailing list
nginx at nginx.org
http://nginx.org/mailman/listinfo/nginx
--
Igor Sysoev
http://sysoev.ru/en/
_______________________________________________
nginx mailing list
nginx at nginx.org
http://nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110304/c075a3e9/attachment-0001.html>
More information about the nginx
mailing list