# # SetEnvIfPlusNoCase User-Agent QCLR QS_Cond=QCLR # ScriptAlias /images/QS_CondLocRequestLimitMatch.jpg ##ROOT##/htdocs/cgi/sleep.cgi # QS_CondLocRequestLimitMatch /images/QS_CondLocRequestLimitMatch.jpg 5 QCLR # INCLUDE scripts/ports CLIENT 6 _REQ localhost $QS_PORT_BASE __GET /images/QS_CondLocRequestLimitMatch.jpg?s=1 HTTP/1.1 __Host: localhost __User-Agent: Mozilla __ _EXPECT . "done" _EXPECT . "200 OK" _WAIT END CLIENT _SLEEP 500 _REQ localhost $QS_PORT_BASE __GET /qos?auto HTTP/1.1 __Host: localhost __User-Agent: Mozilla __ _EXPECT . "QS_CondLocRequestLimitMatch;5\[/images/QS_CondLocRequestLimitMatch.jpg\]: 6" _WAIT _REQ localhost $QS_PORT_BASE __GET /images/QS_CondLocRequestLimitMatch.jpg?s=1 HTTP/1.1 __Host: localhost __User-Agent: QCLR __ _EXPECT . "!done" _EXPECT . "!200 OK" _EXPECT . "custom error page" _EXPECT . "code=011" _WAIT _CLOSE _SLEEP 200 _EXPECT EXEC "mod_qos\(011\): access denied, QS_CondLocRequestLimitMatch rule: /images/QS_CondLocRequestLimitMatch.jpg\(5\), concurrent requests=7" _EXEC tail -1 logs/error_log _REQ localhost $QS_PORT_BASE __GET /images/QS_CondLocRequestLimitMatch.jpg?s=1 HTTP/1.1 __Host: localhost __User-Agent: Mozilla __ _EXPECT . "done" _EXPECT . "200 OK" _WAIT END