私はそれを解決ように見えます...
このフラスコアプリはメインのhtdocsフォルダオフエラーログという名前のフォルダにあります。 ここは私がやったことですが、今はうまくいくようです。
Options +ExecCGI +FollowSymLinks
AddHandler cgi-script .cgi .py .rb
RewriteEngine On
# Lets rewrite all request to https...
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Lets rewrite all request containing index.cgi to /errorlog/index.py
RewriteRule ^index.cgi?(.*)$ /errorlog/index.py$1 [L]
# Lets rewrite all request to the errorlog folder with requested file not found to /errorlog/index.py
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /errorlog/index.py/$1 [QSA,L]
私は理由を知りたがっています! 私はそれが動作すると思うようにコメントしました...
誰かが簡単に私に教えてくださいどのようにこの作品!