title: Python bottle / not working, redirected to router error page
body: <p>I'm trying to make a simple web server with bottle.</p>
  
  <p>I've defined '/' as follows:</p>
  
  <pre><code>@route('/')
  def index():
      output = "{"
      output += "ips: ["
  
      global servers
      keys = servers.keys()
      for key in keys:
          output += "{' " + key + "' : '" + servers[key] +"'},"
      output += "{'dummy' : 'nodata'}"
      output += "]"
      output += "}"
  
      return output
  </code></pre>
  
  <p>Which works fine, on the local machine, and also on the local network.
  I'm listening on all interfaces by</p>
  
  <pre><code>run(host='0.0.0.0', port=8080, debug=True)
  </code></pre>
  
  <p>However, when I try to access it via my global IP, the router or something redirects me to an endpoint "myip:8080/initfail.html"</p>
  
  <p>Normal apache2 works on port 80, so I know that my computer is available through port forwarding, and if I define the endpoint /initfail.html, I can return a web page with no problem. I guess I could redirect back to / from there but it's as hacky as I can imagine and I can't condone such behaviour.</p>
  
  <p>Is there something extra I need to add to the response like headers or something or anything that is causing the redirect of the router to my computer to fail?</p>
  
  <p>python logs:</p>
  
  <pre><code>10.0.0.1 - - [27/Mar/2017 19:19:06] "GET / HTTP/1.1" 200 53
  10.0.0.1 - - [27/Mar/2017 19:19:06] "GET /initfail.html HTTP/1.1" 404 749
  </code></pre>