我有一个Apache和CGI脚本有趣的问题。
当我以下列格式向CGI脚本发出请求时:apache首先检查是否允许查询/cgi-bin/myscript.sh/myscript.params – 这是预期的行为,但在修改/cgi-bin/myscript.sh部分之后,只检查"/myscript.params" 。
我如何禁用第二次检查?
从debugging日志转储:
[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':