ProxyPass does not work for some subfolders [solved]

Topics: User Forum
Aug 5, 2010 at 12:47 PM
Edited Aug 5, 2010 at 12:49 PM

HI!

I am using IIRF 2.1.1.23 in IIS 7.0 and I am trying to proxy requests to dwr (Direct Web Remoting).

It works for some URLs and does not for others.

I want all queries to http://ap-pc-014/p2plus/dwr folder (and subfolders) to be routed to http://ap-pc-014:9090/p2plus/dwr.

Config for the site:
RewriteBase OFF
ProxyPass          ^/p2plus/dwr/(.*)$   http://ap-pc-014:9090/p2plus/dwr/$1
ProxyPassReverse   /p2plus/dwr          http://ap-pc-014:9090/p2plus/dwr   

I can see in the log, that it works for the first 2 URLs, but not for the next 2 URLs. In Fiddler, I see error 404 for URL 3 and 4. In the log, it says "DoRewrites: requires rewrite to:...".

Any hints would be greatly appreciated.

Thanks!

Thomas

Log:
Thu Aug 05 14:42:23 -  1132 - HttpFilterProc: SF_NOTIFY_URL_MAP
Thu Aug 05 14:42:23 -  1132 - HttpFilterProc: cfg= 0x021974F0
Thu Aug 05 14:42:23 -  1132 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Thu Aug 05 14:42:23 -  1132 - DoRewrites
Thu Aug 05 14:42:23 -  1132 - DoRewrites: Url (no decoding): '/p2plus/Test.html'
Thu Aug 05 14:42:23 -  1132 - EvaluateRules: depth=0
Thu Aug 05 14:42:23 -  1132 - EvaluateRules: no RewriteBase
Thu Aug 05 14:42:23 -  1132 - EvaluateRules: Rule 1: -1 (No match)
Thu Aug 05 14:42:23 -  1132 - EvaluateRules: returning 0
Thu Aug 05 14:42:23 -  1132 - DoRewrites: No Rewrite
Thu Aug 05 14:42:23 -  1132 - HttpFilterProc: SF_NOTIFY_LOG
Thu Aug 05 14:42:23 -  1132 - HttpFilterProc: SF_NOTIFY_URL_MAP
Thu Aug 05 14:42:23 -  1132 - HttpFilterProc: cfg= 0x021974F0
Thu Aug 05 14:42:23 -  1132 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Thu Aug 05 14:42:23 -  1132 - DoRewrites
Thu Aug 05 14:42:23 -  1132 - DoRewrites: Url (no decoding): '/p2plus/dwr/interface/ScriptTool.js'
Thu Aug 05 14:42:23 -  1132 - EvaluateRules: depth=0
Thu Aug 05 14:42:23 -  1132 - EvaluateRules: no RewriteBase
Thu Aug 05 14:42:23 -  1132 - EvaluateRules: Rule 1: 2 match
Thu Aug 05 14:42:23 -  1132 - EvaluateRules: Result (length 56): http://ap-pc-014:9090/p2plus/dwr/interface/ScriptTool.js
Thu Aug 05 14:42:23 -  1132 - EvaluateRules: returning 999
Thu Aug 05 14:42:23 -  1132 - DoRewrites: Proxy to: 'http://ap-pc-014:9090/p2plus/dwr/interface/ScriptTool.js'
Thu Aug 05 14:42:23 -  1132 - IirfProxy_SendRequest: http://ap-pc-014:9090/p2plus/dwr/interface/ScriptTool.js
Thu Aug 05 14:42:23 -  1132 - ParseAllRaw: found 10 headers
Thu Aug 05 14:42:23 -  1132 - GenProxyRequestHeadersString: rh(0x02199BA8) nh(ap-pc-014) sn(ap-pc-014) la(fe80::c13c:fc42:76f9:d408%16) ra(fe80::c13c:fc42:76f9:d408%16) ts(0)
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: SF_NOTIFY_URL_MAP
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: cfg= 0x021974F0
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: SF_NOTIFY_LOG
Thu Aug 05 14:42:23 -  1132 - DoRewrites: Proxy complete: 0 chunks, 0 bytes'
Thu Aug 05 14:42:23 -  1132 - HttpFilterProc: SF_NOTIFY_LOG
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: SF_NOTIFY_URL_MAP
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: cfg= 0x021974F0
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Thu Aug 05 14:42:23 -  4088 - DoRewrites
Thu Aug 05 14:42:23 -  4088 - DoRewrites: Url (no decoding): '/p2plus/dwr/engine.js'
Thu Aug 05 14:42:23 -  4088 - EvaluateRules: depth=0
Thu Aug 05 14:42:23 -  4088 - EvaluateRules: no RewriteBase
Thu Aug 05 14:42:23 -  4088 - EvaluateRules: Rule 1: 2 match
Thu Aug 05 14:42:23 -  4088 - EvaluateRules: Result (length 42): http://ap-pc-014:9090/p2plus/dwr/engine.js
Thu Aug 05 14:42:23 -  4088 - EvaluateRules: returning 999
Thu Aug 05 14:42:23 -  4088 - DoRewrites: Proxy to: 'http://ap-pc-014:9090/p2plus/dwr/engine.js'
Thu Aug 05 14:42:23 -  4088 - IirfProxy_SendRequest: http://ap-pc-014:9090/p2plus/dwr/engine.js
Thu Aug 05 14:42:23 -  4088 - ParseAllRaw: found 11 headers
Thu Aug 05 14:42:23 -  4088 - GenProxyRequestHeadersString: rh(0x02199BA8) nh(ap-pc-014) sn(ap-pc-014) la(fe80::c13c:fc42:76f9:d408%16) ra(fe80::c13c:fc42:76f9:d408%16) ts(0)
Thu Aug 05 14:42:23 -  4088 - DoRewrites: Proxy complete: 0 chunks, 0 bytes'
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: SF_NOTIFY_LOG
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: SF_NOTIFY_URL_MAP
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: cfg= 0x021974F0
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: SF_NOTIFY_LOG
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: SF_NOTIFY_URL_MAP
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: cfg= 0x021974F0
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Thu Aug 05 14:42:23 -  4088 - DoRewrites
Thu Aug 05 14:42:23 -  4088 - DoRewrites: Url (no decoding): '/p2plus/dwr/call/plaincall/__System.pageLoaded.dwr'
Thu Aug 05 14:42:23 -  4088 - EvaluateRules: depth=0
Thu Aug 05 14:42:23 -  4088 - EvaluateRules: no RewriteBase
Thu Aug 05 14:42:23 -  4088 - EvaluateRules: Rule 1: 2 match
Thu Aug 05 14:42:23 -  4088 - EvaluateRules: Result (length 71): http://ap-pc-014:9090/p2plus/dwr/call/plaincall/__System.pageLoaded.dwr
Thu Aug 05 14:42:23 -  4088 - EvaluateRules: returning 999
Thu Aug 05 14:42:23 -  4088 - DoRewrites: Proxy to: 'http://ap-pc-014:9090/p2plus/dwr/call/plaincall/__System.pageLoaded.dwr'
Thu Aug 05 14:42:23 -  4088 - IirfProxy_SendRequest: http://ap-pc-014:9090/p2plus/dwr/call/plaincall/__System.pageLoaded.dwr
Thu Aug 05 14:42:23 -  4088 - DoRewrites: requires rewrite to: '/proxy.iirf?path=/LM/W3SVC/1/ROOT/p2plus&url=http://ap-pc-014:9090/p2plus/dwr/call/plaincall/__System.pageLoaded.dwr'
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: SF_NOTIFY_URL_MAP
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: cfg= 0x021974F0
Thu Aug 05 14:42:23 -  4088 - HttpFilterProc: SF_NOTIFY_LOG
Thu Aug 05 14:42:25 -  4088 - HttpFilterProc: SF_NOTIFY_URL_MAP
Thu Aug 05 14:42:25 -  4088 - HttpFilterProc: cfg= 0x021974F0
Thu Aug 05 14:42:25 -  4088 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Thu Aug 05 14:42:25 -  4088 - DoRewrites
Thu Aug 05 14:42:25 -  4088 - DoRewrites: Url (no decoding): '/p2plus/dwr/call/plaincall/ScriptTool.test.dwr'
Thu Aug 05 14:42:25 -  4088 - EvaluateRules: depth=0
Thu Aug 05 14:42:25 -  4088 - EvaluateRules: no RewriteBase
Thu Aug 05 14:42:25 -  4088 - EvaluateRules: Rule 1: 2 match
Thu Aug 05 14:42:25 -  4088 - EvaluateRules: Result (length 67): http://ap-pc-014:9090/p2plus/dwr/call/plaincall/ScriptTool.test.dwr
Thu Aug 05 14:42:25 -  4088 - EvaluateRules: returning 999
Thu Aug 05 14:42:25 -  4088 - DoRewrites: Proxy to: 'http://ap-pc-014:9090/p2plus/dwr/call/plaincall/ScriptTool.test.dwr'
Thu Aug 05 14:42:25 -  4088 - IirfProxy_SendRequest: http://ap-pc-014:9090/p2plus/dwr/call/plaincall/ScriptTool.test.dwr
Thu Aug 05 14:42:25 -  4088 - DoRewrites: requires rewrite to: '/proxy.iirf?path=/LM/W3SVC/1/ROOT/p2plus&url=http://ap-pc-014:9090/p2plus/dwr/call/plaincall/ScriptTool.test.dwr'
Thu Aug 05 14:42:25 -  4088 - HttpFilterProc: SF_NOTIFY_URL_MAP
Thu Aug 05 14:42:25 -  4088 - HttpFilterProc: cfg= 0x021974F0
Thu Aug 05 14:42:25 -  4088 - HttpFilterProc: SF_NOTIFY_LOG

Aug 5, 2010 at 1:39 PM

OK, I got it. The handler mapper did not have executable right.