<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6002.16497" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#000000 size=2>Hello</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Seeing as I didn't get a response from my last question.&nbsp; Let me a different approach.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I followed an example config from this site:&nbsp; <A href="http://topfunky.net/svn/shovel/nginx/conf/nginx.conf">http://topfunky.net/svn/shovel/nginx/conf/nginx.conf</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Everything for the most part was clear except the part of the example that states this:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; # Copy this section on down and put into a separate file <BR>&nbsp; # if you want to organize your virtual hosts in files.<BR>&nbsp; #<BR>&nbsp; # Then include here with<BR>&nbsp; #<BR>&nbsp; #&nbsp;&nbsp; include /usr/local/nginx/conf/vhosts/my_subdomain.conf<BR>&nbsp; #<BR>&nbsp; # the server directive is nginx's virtual host directive.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This part of the instruction wasn't really clear as to where to put the 'include' statement.&nbsp; It says to copy everything, then include here?!?!&nbsp; I have no idea what that means.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>So inevitably I ended making my main nginx.conf look like this</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>http {</FONT></DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; # Rename to mongrel_site1, mongrel_site2, etc if using<BR>&nbsp;&nbsp; # virtual hosts.<BR>&nbsp;&nbsp;&nbsp;upstream mongrel {<BR>&nbsp;&nbsp;&nbsp;&nbsp; server 127.0.0.1:5000;<BR>&nbsp;&nbsp;&nbsp;&nbsp; # server 127.0.0.1:5001;<BR>&nbsp;&nbsp;&nbsp;&nbsp; # server 127.0.0.1:5002;<BR>&nbsp;&nbsp; }</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; /usr/local/nginx/conf/vhosts/my_subdomain.conf</FONT></DIV>
<DIV>.</DIV>
<DIV>.</DIV>
<DIV>.</DIV>
<DIV>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>Then I created a file called 'my_subdomain.cong' (in the path of course), as a test just to see if it works with part of the example that say "copy from here down".</DIV>
<DIV>&nbsp;</DIV>
<DIV>So my&nbsp;first question is;&nbsp; Is the above&nbsp;correct, or, am i supposed to put the 'include' within the&nbsp;upstream method?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Example:</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>upstream mongrel {<BR>&nbsp;&nbsp;&nbsp;&nbsp; server 127.0.0.1:5000;<BR>&nbsp;&nbsp;&nbsp;&nbsp; # server 127.0.0.1:5001;<BR>&nbsp;&nbsp;&nbsp;&nbsp; # server 127.0.0.1:5002;</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp; /usr/local/nginx/conf/vhosts/my_subdomain.conf<BR>&nbsp;&nbsp; }</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>- Shamunda</DIV><!--[object_id=#playlan.com#]--><P align=left><FONT face=Tahoma size=2><FONT color=#0000ff>***** Email confidentiality notice *****</P>
<P align=left><FONT face=Tahoma size=2><FONT color=#0000ff>28/1/2009</FONT></FONT></P>
<P align=left><FONT face=Tahoma size=2><FONT color=#0000ff>This message is private and confidential.&nbsp; If you have recieved this message in error, please notify us and remove it from your system.</FONT></FONT></P></FONT></FONT></BODY></HTML>