擅长:python、mysql、java
<p>在共享环境中意味着您很可能需要使用CGI来部署:</p>
<p><a href="http://flask.pocoo.org/docs/deploying/cgi/" rel="nofollow">http://flask.pocoo.org/docs/deploying/cgi/</a></p>
<blockquote>
<p>On shared webhosting, though, you might not have access to your Apache
config. In this case, a file called .htaccess, sitting in the public
directory you want your app to be available, works too but the
ScriptAlias directive won’t work in that case:</p>
<p>RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f # Don't interfere
with static files RewriteRule ^(.*)$ /path/to/the/application.cgi/$1
[L]</p>
</blockquote>