まずなにはともあれHello Flaskということで
# -*- encoding: utf-8 -*-続けてCGI
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello Flask World!"
'''
if __name__ == "__main__":
app.debug = True
app.run()
'''
#!/home/path2yourVirtualenv/bin/python.htaccessに
# -*- encoding: utf-8 -*-
from wsgiref.handlers import CGIHandler
from helloFlask import app
CGIHandler().run(app)
RewriteEngine OnきもはCGIの1行目virtualenvへのpathの設定
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /helloCGI.cgi/$1 [QSA,L]