问题
Im trying to run Flask on CGI,
i added this to the .httaccess file:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /home/trafficzon/py.trafficzone.online/cgi-bin/flask.cgi/$1 [L]
but when i make a request on http://py.trafficzone.online/ i get an 500 error, saying:
Cannot serve directory /home/trafficzon/public_html/: No matching DirectoryIndex
why does it redirected to public_html instead of the path in the .httaccess?
来源:https://stackoverflow.com/questions/55715990/apache-no-matching-directoryindex-path-is-changing-to-public-html