Apache - No matching DirectoryIndex - Path is changing to public_html

爱⌒轻易说出口 提交于 2019-12-13 03:03:00

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!