我正在从Apache2迁移到NGinX,我想通过python脚本进行身份验证。Apache2的工作配置是:
WSGIScriptAlias /hg $SCRIPT_DIR/hgwebdir.wsgi
WSGIPythonPath $SCRIPT_DIR
<Location /hg>
AuthType Basic
AuthName "Mercurial"
AuthBasicProvider wsgi
WSGIAuthUserScript $SCRIPT_DIR/authentication.py
Require valid-user
</Location>
nginx中的等效配置是什么?在
目前没有回答
相关问题 更多 >
编程相关推荐