Hi all,&nbsp;<div>I am having quite a bit of issues in setting up tornado apps on ubuntu 10.04 server edition.</div><div><br></div><div>Here's the background information:</div><div>1) The location of my tornado application is at: /srv/www/domain1.com/public_html/src</div><div>The folder structure is as such:</div><div><font class="Apple-style-span" face="'courier new', monospace">src/</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; static/</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; templates/</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; app.py</font></div><div><br></div><div>2) For my Nginx configuration, I am making use of /etc/nginx/sites-enabled to host&nbsp;multiple&nbsp;tornado apps.</div><div>In the sites-enabled folder, I created a domain1.com file:</div><div><div><font class="Apple-style-span" face="'courier new', monospace">server {</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;listen &nbsp; 80;</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;server_name &nbsp;.www.tubeface.me;</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite ^/(.*) http://www.tubeface.me/$1 permanent;</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">server {</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;listen &nbsp; 80;</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;server_name www.tubeface.me;</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;access_log /srv/www/tubeface.me/logs/static.logs;</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location / {</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;root &nbsp; /srv/www/tubeface.me/public_html/src/;</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;index &nbsp;app.py;</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</font></div></div><div><br></div><div><br></div><div>after saving the above file, i restarted nginx by running /etc/init.d/nginx restart&nbsp;</div><div><br></div><div><br></div><div><br></div><div>Than I received the following error message:</div><div><div><font class="Apple-style-span" face="'courier new', monospace">Restarting nginx: [warn]: conflicting server name "domain1.com" on 0.0.0.0:80, ignored</font></div><div><font class="Apple-style-span" face="'courier new', monospace">[warn]: conflicting server name "<meta http-equiv="content-type" content="text/html; charset=utf-8">domain1.com" on 0.0.0.0:80, ignored</font></div><div><font class="Apple-style-span" face="'courier new', monospace">nginx.</font></div></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; ">I did not make any changes to the default nginx.conf file by the way.</span><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div>But the weird thing is that after starting my tornado app by running python app.py,&nbsp;</div><div>I am able to access my app at http://xxx.xx.xx.xx:8888</div><div><br></div><div>So my questions are:</div><div>1) What caused the nginx error message?</div><div>2) Am I missing any configuration? ( such as changing /etc/hosts ? -&gt; i've tried this but it didnt work as well )</div><div>3) what can i do to enable my app at www.domain1.com ? ( I have already pointed the DNS to my present host )</div><div><br></div><div>I need a bit of hand holding as I am kind of new in terms of putting Tornado in production using Nginx.</div><div><br></div><div>I am using Tornado 1.2.1, Ubuntu 10.04, Nginx 0.8.54</div><div><br></div><div>Please help me~~~~</div><div><br></div><div>Best Regards.</div><div><br></div><div><br></div>