Apache 和 CGI​​ 脚本的问题

Apache 和 CGI​​ 脚本的问题

我对 Apache 和 CGI​​ 脚本有一个有趣的问题。

当我以以下格式向 CGI 脚本发出请求时:/cgi-bin/myscript.sh/myscript.params,apache 首先检查是否允许查询/cgi-bin/myscript.sh/myscript.params- 这是预期的行为,但之后他会修剪/cgi-bin/myscript.sh部分并仅检查"/myscript.params"

我怎样才能禁用第二次检查?

从调试日志转储:

[authz_core:debug] [pid 10204] mod_authz_core.c(802): [client 127.0.0.1:50196] AH01626: authorization result of Require all granted: granted
[authz_core:debug] [pid 10204] mod_authz_core.c(802): [client 127.0.0.1:50196] AH01626: authorization result of <RequireAny>: granted
[core:trace3] [pid 10204] request.c(227): [client 127.0.0.1:50196] request authorized without authentication by access_checker_ex hook: /cgi-bin/myscript.sh/myscript.params
[authz_core:debug] [pid 10204] mod_authz_core.c(802): [client 127.0.0.1:50196] AH01626: authorization result of Require all granted: granted
[authz_core:debug] [pid 10204] mod_authz_core.c(802): [client 127.0.0.1:50196] AH01626: authorization result of <RequireAny>: granted
[core:trace3] [pid 10204] request.c(227): [client 127.0.0.1:50196] request authorized without authentication by access_checker_ex hook: /myscript.params
[cgi:trace4] [pid 10204] util_script.c(521): [client 127.0.0.1:50196] Headers from script 'myscript.sh':

相关内容