<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Where is this config file that I need to edit?<br><br><div></div><br><br><br><br><hr id="stopSpelling">From: igor@sysoev.ru<br>Date: Fri, 4 Mar 2011 09:15:26 +0300<br>To: nginx@nginx.org<br>Subject: Re: virtual host in one ip address<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML"><div><div>On Mar 4, 2011, at 9:10 , Alex H wrote:</div><br class="ecxApple-interchange-newline"><blockquote><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Georgia;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div class="ecxhmmessage" style="font-size:10pt;font-family:Tahoma">Is this on the default of the nginx.conf?<br></div></span></blockquote><div><br></div><div>I do not know what do you mean by default. The whole configuration is like</div><div><br></div><div><font class="ecxApple-style-span" face="'Courier New'">http {</font></div><div><font class="ecxApple-style-span" face="'Courier New'">&nbsp;&nbsp; &nbsp;server {</font></div><div><font class="ecxApple-style-span" face="'Courier New'">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;location /v_host1/ {</font></div><div><font class="ecxApple-style-span" face="'Courier New'">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</font></div><div><font class="ecxApple-style-span" face="'Courier New'">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;location /v_host1/ {</font></div><div><font class="ecxApple-style-span" face="'Courier New'">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</font></div><div><font class="ecxApple-style-span" face="'Courier New'">&nbsp;&nbsp; &nbsp;}</font></div><div><font class="ecxApple-style-span" face="'Courier New'">}</font></div><div><font class="ecxApple-style-span" face="'Courier New'"><br></font></div><div><font class="ecxApple-style-span" face="'Courier New'">That's all.</font></div><div><font class="ecxApple-style-span" face="'Courier New'"><br></font></div><blockquote><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Georgia;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div class="ecxhmmessage" style="font-size:10pt;font-family:Tahoma">From:<span class="ecxApple-converted-space">&nbsp;</span><a href="mailto:igor@sysoev.ru">igor@sysoev.ru</a><br>Date: Fri, 4 Mar 2011 09:01:33 +0300<br>To:<span class="ecxApple-converted-space">&nbsp;</span><a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>Subject: Re: virtual host in one ip address<br><br><div><div>On Mar 4, 2011, at 7:22 , Alex H wrote:</div><br class="ecxApple-interchange-newline"><blockquote><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Georgia;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span class="ecxApple-style-span" style="font-family:Tahoma;font-size:13px"><span class="ecxApple-style-span" style="border-collapse:collapse;font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-size:14px;line-height:18px"><p style="margin-right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;clear:both;word-wrap:break-word"><br class="ecxApple-interchange-newline">I have a rackspace server running with nginx. I am a newbie to all the server stuff. Let me explain the situation here:</p><ol style="margin-right:0px;margin-bottom:1em;margin-left:30px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;list-style-type:decimal;list-style-position:initial;list-style-image:initial"><li style="margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent">I have an IP address and I have two virtual host on my machine.</li><li style="margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent">I don't have a domain and I don't want to buy one</li><li style="margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent">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</li></ol><p style="margin-right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;clear:both;word-wrap:break-word">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.</p></span></span></span></blockquote><font class="ecxApple-style-span" face="'Courier New'">server {</font></div><div><font class="ecxApple-style-span" face="'Courier New'">&nbsp;&nbsp; &nbsp;location /v_host1/ {</font></div><div><font class="ecxApple-style-span" face="'Courier New'">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;root /path/to/v_host1;</font></div><div><font class="ecxApple-style-span" face="'Courier New'">&nbsp;&nbsp; &nbsp;}</font></div><div><font class="ecxApple-style-span" face="'Courier New'">&nbsp;&nbsp; &nbsp;location /v_host2/ {</font></div><div><font class="ecxApple-style-span" face="'Courier New'">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;root /path/to/v_host2;</font></div><div><font class="ecxApple-style-span" face="'Courier New'">&nbsp;&nbsp; &nbsp;}</font></div><div><font class="ecxApple-style-span" face="'Courier New'"><div style="font-family:Georgia"><font class="ecxApple-style-span" face="'Courier New'"><br></font></div></font></div><div><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Georgia;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><br class="ecxApple-interchange-newline">--<br>Igor Sysoev<br><a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a></span></div><br><br>_______________________________________________ nginx mailing list<span class="ecxApple-converted-space">&nbsp;</span><a href="mailto:nginx@nginx.org">nginx@nginx.org</a><span class="ecxApple-converted-space">&nbsp;</span><a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a>_______________________________________________<br>nginx mailing list<br><a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br><a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br></div></span></blockquote></div><br><div>
<span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Georgia;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><br class="ecxApple-interchange-newline">--<br>Igor Sysoev<br><a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a></span>
</div>
<br><br>_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx                                               </body>
</html>