title: Running tornado & hosting app on different port
body: <p>I have a Tornado web chat that must absolutely run on the default port 80 for various reasons such as authentication etc. However the Tornado web server is running on port 8800 for obvious reasons (if it is possible to host Tornado on the same port as my website, I'd be willing to try), so what I'm trying to accomplish is to run Tornado web server through my console while hosting the Tornado web chat on my website's default port.</p>
  
  <p>I moved the web chat's index.html to my website default folders so it is like <strong><em>www.example.com/webchat.html</em></strong> rather than <strong><em>www.example.com:8800/webchat</em></strong>. I then run tornado with the command</p>
  
  <pre><code>python webchat.py 
  </code></pre>
  
  <p>But when I visit webchat.html the chat isn't running as it would if it were on port 8800 because 
  the page is not rendering the python. </p>
  
  <p><strong>Webchat HTML</strong></p>
  
  <pre><code>&lt;div class="container" style="width: auto; height: 100%;"&gt;
  
           &lt;span&gt;{% raw content %}&lt;/span&gt; &lt;!-- The span is not rendered on page --&gt;
  
  
  
  &lt;/div&gt;&lt;!-- /.container --&gt;
  
  &lt;!-- Bootstrap core JavaScript
  ================================================== --&gt;
  &lt;!-- Placed at the end of the document so the pages load faster --&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://getbootstrap.com/dist/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  {% if 'chat' in globals() and chat %}
      &lt;!-- Application script --&gt;
      &lt;script src="{{ static_url('stuff.js') }}" type="text/javascript"&gt;&lt;/script&gt;
          {% end %}
  </code></pre>