Skip to content

Instantly share code, notes, and snippets.

@rchacon
Created January 12, 2015 03:00
Show Gist options
  • Save rchacon/d99366078578efcb918f to your computer and use it in GitHub Desktop.
Save rchacon/d99366078578efcb918f to your computer and use it in GitHub Desktop.
Python on 1and1
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /mysite/application.cgi/$1 [L]
#!/usr/bin/python
from wsgiref.handlers import CGIHandler
from mysite import app
CGIHandler().run(app)
@rchacon
Copy link
Author

rchacon commented Jan 12, 2015

mod_wsgi isn't available on 1and1 shared hosting so you got to go old school

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment