Created
January 12, 2015 03:00
-
-
Save rchacon/d99366078578efcb918f to your computer and use it in GitHub Desktop.
Python on 1and1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ /mysite/application.cgi/$1 [L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from wsgiref.handlers import CGIHandler | |
from mysite import app | |
CGIHandler().run(app) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mod_wsgi isn't available on 1and1 shared hosting so you got to go old school