title: Deploy flask application on 1&1 shared hosting (with CGI)
body: <p>I've written a web application for my sports club with the flask web framework. I did everything on my local machine with the build-in test server.</p>
  
  <p>Know they told me to deploy it on an 1&amp;1 shared hosting web space. They have python support but it seems like they only allow CGI to run python scripts.</p>
  
  <p>I tried this tutorial: <a href="http://flask.pocoo.org/docs/deploying/cgi/" rel="noreferrer">flask via CGI</a></p>
  
  <p>I ignored the rewrite stuff until now. All requests to my CGI script resulted in a 404 error. I modified my 404 handler in the application to return <code>request.path</code>. When I request /foo/runserver.cgi/ it returns / as output. I have no idea why it doesn't serve the index view. It doesn't work with any view, I always get a 404.</p>
  
  <p>Kind regards,
  Sebastian</p>