<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Georgia; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; "><div>-conf-path=/etc/nginx/nginx.conf</div></div></span></blockquote><br></div><div><br></div><div><div>On Mar 4, 2011, at 9:31 , Alex H wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Georgia; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; "><div>configure arguments: --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug --with-http_stub_status_module --with-http_flv_module --with-http_ssl_module --with-http_dav_module --with-http_gzip_static_module --with-http_realip_module --with-mail --with-mail_ssl_module --with-ipv6 --add-module=/build/buildd/nginx-0.7.65/modules/nginx-upstream-fair</div><div><br></div><br><div></div><br><br><br><br><hr id="stopSpelling">From:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:igor@sysoev.ru">igor@sysoev.ru</a><br>Date: Fri, 4 Mar 2011 09:21:10 +0300<br>To:<span class="Apple-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><br></div>What does "nginx -V " show ?<br><div><br><div><div>On Mar 4, 2011, at 9:17 , 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; ">Where is this config file that I need to edit?<br><br><div></div><br><br><br><br><hr id="ecxstopSpelling">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:15:26 +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 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-top: 0px; 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-top: 0px; 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-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-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></div><br>_______________________________________________ nginx mailing list<span class="Apple-converted-space">&nbsp;</span><a href="mailto:nginx@nginx.org">nginx@nginx.org</a><span class="Apple-converted-space">&nbsp;</span><a href="http://nginx.org/mailman/listinfo/nginx">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">http://nginx.org/mailman/listinfo/nginx</a><br></div></span></blockquote></div><br><div>
<span class="Apple-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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br class="Apple-interchange-newline">--<br>Igor Sysoev<br><a href="http://sysoev.ru/en/">http://sysoev.ru/en/</a></span>
</div>
<br></body></html>