Simple proxy

Feb 23, 2011 at 8:19 PM

Ok, I've been pouring over this site and accompanying documentation and just can't seem to get this to work.  I have added the following lines to my IirfGlobal.ini file:

ProxyPass ^/(.*)$ http://192.168.1.122/$
ProxyPassReverse / http://my.domain.me

My objective is to simply redirect an incoming url with "my.domain.c" host headers to an internal VM located on the network at 192.186.1.122 and then back out.  I feel that I'm missing something simple that I just can't figure out.  Any assistance would be greatly appreciated.

 

Thanks,

Coordinator
Feb 24, 2011 at 12:49 AM
Edited Feb 24, 2011 at 11:16 AM

A redirect is a different thing than a proxy.  There's a top-level page in the IIRF manual that explains the difference in some detail. You should check it out. If you want a proxy, you shouldn't say "I want to redirect".  They are two different things.

So can you be clear: Which do you want? Redirect or Proxy?

Also - you said "it's not working" but you didn't describe the problem that occurs.

If you want to perform an action based on the host header, then you will need a RewriteCond attached to the Redirect or Proxy directive.  This is also described in the IIRF documentation. Lots of examples there. Check it.


 Whoops! I just re-read your post. You said you put those statements in the IIrfGlobal.ini file. If you read the documentation you'd know that those statements don't belong in IirfGlobal.ini.  Check the section on "Configuration" - it the first page there explains what you can put into IirfGlobal.ini.

I know you said you've been "poring" over the doc, but I think you are not reading the actual IIRF documentation.  It definitely will not take hours.  Spend just 10-15 minutes reading the IIRF Admin Guide, and I bet you'll have a better understanding of all these things, and probably some others, too.  

 

Feb 24, 2011 at 4:50 PM

Yep, I figured it out relatively easily once I realized that I needed to place the iirf.ini in the same directory as the website.  Just a couple more tweeks based on previous posts, and all will be perfect.

Thanks for creating a such a well documented and simple rewrite filter!

Feb 25, 2011 at 12:38 AM
Edited Feb 25, 2011 at 12:40 AM

Ok, new problem.  I currently have the following code in my iirf.ini file at the root directory of my site.

RewriteLog D:\Virtual Machines\MindTouch\iirf Log\iirf
RewriteLogLevel 1
IterationLimit 10
MaxMatchCount 10
RewriteEngine ON
StatusInquiry ON


## proxy requests for the www.mydomain.com site to an internal server
ProxyPass          ^/(.*)$   http://192.168.1.122/$1
ProxyPassReverse   /         http://192.168.1.122/

For the most part, it's working fine.  However, some of the links and buttons use the internal URL of "192.168.1.122" instead of "mydomain.com."  Something tells me that I need to insert a RewriteCond similiar to the one you postd over here where you posted this solution:

RewriteCond %{HTTP_HOST}         ^wiki\.mydomain\.co\.uk$ 
ProxyPass   ^/(?:wiki/)?(.*)$    http://mylanserver/wiki/$1

I'm at a loss on how to implement it for the problem I'm facing though.

Coordinator
Feb 25, 2011 at 2:19 AM

Well I'd have to see the IIRF log file in order to diagnose the problem .

 

Feb 25, 2011 at 2:51 AM

Here's what the latest log file has after creating the error:

Thu Feb 24 19:41:07 -  5812 - -------------------------------------------------------
Thu Feb 24 19:41:07 -  5812 - Ionic ISAPI Rewriting Filter (IIRF) 2.1.1.25 x86 RELEASE
Thu Feb 24 19:41:07 -  5812 - IIRF was built on: Jan  7 2011 07:30:24
Thu Feb 24 19:41:07 -  5812 - Cached: DLL_PROCESS_ATTACH
Thu Feb 24 19:41:07 -  5812 - Cached: Process ID: 3568
Thu Feb 24 19:41:07 -  5812 - Cached: DLL_PROCESS_ATTACH - complete
Thu Feb 24 19:41:07 -  5812 - Cached: GetFilterVersion
Thu Feb 24 19:41:07 -  5812 - GetLogFile: app:'/LM/W3SVC/387710230/Root'  new log:'D:\Virtual Machines\MindTouch\iirf Log\iirf.3568.log'
Thu Feb 24 19:41:07 -  5812 - ReadVdirConfig: actual log file 'D:\Virtual Machines\MindTouch\iirf Log\iirf.3568.log'
Thu Feb 24 19:41:07 -  5812 - ReadVdirConfig: ini file: 'D:\Virtual Machines\MindTouch\Iirf.ini'
Thu Feb 24 19:41:07 -  5812 - ReadVdirConfig: ini file timestamp: 2011/02/24 17:44:14 Pacific Standard Time
Thu Feb 24 19:41:07 -  5812 - ReadVdirConfig: cfg(0x13196388)
Thu Feb 24 19:41:07 -  5812 - ReadVdirConfig: LogLevel = 1
Thu Feb 24 19:41:07 -  5812 - ReadVdirConfig: D:\Virtual Machines\MindTouch\Iirf.ini(8): IterationLimit 10
Thu Feb 24 19:41:07 -  5812 - ReadVdirConfig: D:\Virtual Machines\MindTouch\Iirf.ini(9): MaxMatchCount 10
Thu Feb 24 19:41:07 -  5812 - ReadVdirConfig: D:\Virtual Machines\MindTouch\Iirf.ini(10): RewriteEngine will be enabled.
Thu Feb 24 19:41:07 -  5812 - ReadVdirConfig: D:\Virtual Machines\MindTouch\Iirf.ini(11): StatusInquiry ON (--) (--)
Thu Feb 24 19:41:07 -  5812 - ReadVdirConfig: D:\Virtual Machines\MindTouch\Iirf.ini(11): IIRF Status Inquiry is enabled at path '/iirfStatus' for local requests only.
Thu Feb 24 19:41:07 -  5812 - ReadVdirConfig: D:\Virtual Machines\MindTouch\Iirf.ini(15): ProxyPass (rule 1)  '^/(.*)$'  'http://192.168.1.122/$1'   (null)
Thu Feb 24 19:41:07 -  5812 - ReadVdirConfig: D:\Virtual Machines\MindTouch\Iirf.ini(16): ProxyPassReverse   /  http://192.168.1.122/
Thu Feb 24 19:41:07 -  5812 - ReadVdirConfig: Done reading INI for the root vdir, found 1 rules (0 errors, 0 warnings) on 37 lines

 

Coordinator
Feb 25, 2011 at 9:47 AM

You will need to increase the RewriteLogLevel number. 

At LogLevel = 1, which is what you are using, there are no log statements for each URL that gets processed. As a result, the only thing I Can see from that logfile is that your ini file was correctly read in.

Try loglevel = 4, and run one request through the filter. Then send me the resulting IIRF log.

Feb 25, 2011 at 2:25 PM

Super big thanks for helping with this Cheeso!

Hopefully there is enough information here to figure out what is going on:

Fri Feb 25 07:18:22 -  1200 - IsIniFileUpdated: D:\Virtual Machines\MindTouch\Iirf.ini NO
Fri Feb 25 07:18:22 -  1200 - GetVdirConfig: Obtain  vdir '/LM/W3SVC/387710230/Root' (era=0) (rc=2) (Expired=0) (ptr=0x01CE6708)...
Fri Feb 25 07:18:22 -  1200 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Feb 25 07:18:22 -  1200 - HttpFilterProc: cfg= 0x01CE6708
Fri Feb 25 07:18:22 -  1200 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Feb 25 07:18:22 -  1200 - DoRewrites
Fri Feb 25 07:18:22 -  1200 - GetHeader_AutoFree: 'url' = '/index.php?title=Special:Userlogin&returntotitle='
Fri Feb 25 07:18:22 -  1200 - GetHeader_AutoFree: 'method' = 'GET'
Fri Feb 25 07:18:22 -  1200 - DoRewrites: New Url, before decoding: '/index.php?title=Special:Userlogin&returntotitle=' 
Fri Feb 25 07:18:22 -  1200 - DoRewrites: Url (no decoding): '/index.php?title=Special:Userlogin&returntotitle='
Fri Feb 25 07:18:22 -  1200 - EvaluateRules: depth=0
Fri Feb 25 07:18:22 -  1200 - EvaluateRules: no RewriteBase
Fri Feb 25 07:18:22 -  1200 - EvaluateRules: Rule 1: pattern: ^/(.*)$  subject: /index.php?title=Special:Userlogin&returntotitle=
Fri Feb 25 07:18:22 -  1200 - EvaluateRules: Rule 1: 2 match
Fri Feb 25 07:18:22 -  1200 - ReplaceServerVariables: alloc 24 bytes
Fri Feb 25 07:18:22 -  1200 - ReplaceServerVariables: in='http://192.168.1.122/$1' out='http://192.168.1.122/$1'
Fri Feb 25 07:18:22 -  1200 - GenerateReplacementString: alloc 71 bytes
Fri Feb 25 07:18:22 -  1200 - GenerateReplacementString: result 'http://192.168.1.122/index.php?title=Special:Userlogin&returntotitle='
Fri Feb 25 07:18:22 -  1200 - EvaluateRules: Result (length 69): http://192.168.1.122/index.php?title=Special:Userlogin&returntotitle=
Fri Feb 25 07:18:22 -  1200 - EvaluateRules: returning 999
Fri Feb 25 07:18:22 -  1200 - DoRewrites: Proxy to: 'http://192.168.1.122/index.php?title=Special:Userlogin&returntotitle='
Fri Feb 25 07:18:22 -  1200 - IirfProxy_SendRequest: http://192.168.1.122/index.php?title=Special:Userlogin&returntotitle=
Fri Feb 25 07:18:22 -  1200 - ProxyRequest: host(192.168.1.122)  path+query(/index.php?title=Special:Userlogin&returntotitle=)
Fri Feb 25 07:18:22 -  1200 - ParseAllRaw: Connection: Keep-Alive

Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-us
Cookie: PHPSESSID=rtdhsijrr3chrsv056qficu1v6; __utmc=92312838; __utma=92312838.605058333.1298519648.1298605271.1298646873.7; __utmz=92312838.1298519648.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=92312838.3.10.1298646873

Host: johnmann.dyndns-free.com
Referer: http://johnmann.dyndns-free.com/
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

Fri Feb 25 07:18:22 -  1200 - ParseAllRaw: hdr Connection: Keep-Alive
Fri Feb 25 07:18:22 -  1200 - ParseAllRaw: hdr Accept: */*
Fri Feb 25 07:18:22 -  1200 - ParseAllRaw: hdr Accept-Encoding: gzip, deflate
Fri Feb 25 07:18:22 -  1200 - ParseAllRaw: hdr Accept-Language: en-us
Fri Feb 25 07:18:22 -  1200 - ParseAllRaw: hdr Cookie: PHPSESSID=rtdhsijrr3chrsv056qficu1v6; __utmc=92312838; __utma=92312838.605058333.1298519648.1298605271.1298646873.7; __utmz=92312838.1298519648.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=92312838.3.10.1298646873
Fri Feb 25 07:18:22 -  1200 - ParseAllRaw: hdr Host: johnmann.dyndns-free.com
Fri Feb 25 07:18:22 -  1200 - ParseAllRaw: hdr Referer: http://johnmann.dyndns-free.com/
Fri Feb 25 07:18:22 -  1200 - ParseAllRaw: hdr User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Fri Feb 25 07:18:22 -  1200 - ParseAllRaw: found 8 headers
Fri Feb 25 07:18:22 -  1200 - GenProxyRequestHeadersString: rh(0x01CE48F0) nh(192.168.1.122) sn(johnmann.dyndns-free.com) la(192.168.1.100) ra(76.212.149.94) ts(0)
Fri Feb 25 07:18:22 -  1200 - ProxyRequest: WinHttpConnect 192.168.1.122 80
Fri Feb 25 07:18:22 -  1200 - ProxyRequest: WinHttpOpenRequest: GET /index.php?title=Special:Userlogin&returntotitle=
Fri Feb 25 07:18:22 -  1200 - ProxyRequest: WinHttpAddRequestHeaders
Fri Feb 25 07:18:22 -  1200 - ProxyRequest: WinHttpSendRequest
Fri Feb 25 07:18:22 -  1200 - ProxyRequest: WinHttpReceiveResponse
Fri Feb 25 07:18:22 -  1200 - ProxyRequest: WinHttpQueryHeaders
Fri Feb 25 07:18:22 -  1200 - ProxyRequest: WinHttpQueryHeaders: status 200
Fri Feb 25 07:18:22 -  1200 - Proxy_SetResponseHeaders: starting status 200
Fri Feb 25 07:18:22 -  1200 - Proxy_SetResponseHeaders: status OK
Fri Feb 25 07:18:22 -  1200 - ProcessResponseHeaders: all Date: Fri, 25 Feb 2011 07:18:11 GMT

P3P: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"

Content-language: en-us
Content-Encoding: gzip
Vary: Accept-Encoding,Cookie
Content-Length: 4863
Expires: -1
Cache-Control: private, must-revalidate, max-age=0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
Via: 1.1 192.168.1.100 (IIRF v2.1)

Fri Feb 25 07:18:22 -  1200 - ProxyRequest: WinHttpReadData 526
Fri Feb 25 07:18:22 -  1200 - ProxyRequest: WinHttpReadData 4337
Fri Feb 25 07:18:22 -  1200 - ProxyRequest: chunks(2) totalBytes(4863)
Fri Feb 25 07:18:22 -  1200 - DoRewrites: Proxy complete: 2 chunks, 4863 bytes'
Fri Feb 25 07:18:22 -  1200 - ReleaseOrExpireVdirConfig: vdir '/LM/W3SVC/387710230/Root' (era=0) (rc=1) (Expired=0) (ptr=0x01CE6708)...
Fri Feb 25 07:18:32 -  1200 - IsIniFileUpdated: D:\Virtual Machines\MindTouch\Iirf.ini NO
Fri Feb 25 07:18:32 -  1200 - GetVdirConfig: Obtain  vdir '/LM/W3SVC/387710230/Root' (era=0) (rc=2) (Expired=0) (ptr=0x01CE6708)...
Fri Feb 25 07:18:32 -  1200 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Feb 25 07:18:32 -  1200 - HttpFilterProc: cfg= 0x01CE6708
Fri Feb 25 07:18:32 -  1200 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Feb 25 07:18:32 -  1200 - DoRewrites
Fri Feb 25 07:18:32 -  1200 - GetHeader_AutoFree: 'url' = '/Special:UserLogin'
Fri Feb 25 07:18:32 -  1200 - GetHeader_AutoFree: 'method' = 'POST'
Fri Feb 25 07:18:32 -  1200 - DoRewrites: New Url, before decoding: '/Special:UserLogin' 
Fri Feb 25 07:18:32 -  1200 - DoRewrites: Url (no decoding): '/Special:UserLogin'
Fri Feb 25 07:18:32 -  1200 - EvaluateRules: depth=0
Fri Feb 25 07:18:32 -  1200 - EvaluateRules: no RewriteBase
Fri Feb 25 07:18:32 -  1200 - EvaluateRules: Rule 1: pattern: ^/(.*)$  subject: /Special:UserLogin
Fri Feb 25 07:18:32 -  1200 - EvaluateRules: Rule 1: 2 match
Fri Feb 25 07:18:32 -  1200 - ReplaceServerVariables: alloc 24 bytes
Fri Feb 25 07:18:32 -  1200 - ReplaceServerVariables: in='http://192.168.1.122/$1' out='http://192.168.1.122/$1'
Fri Feb 25 07:18:32 -  1200 - GenerateReplacementString: alloc 40 bytes
Fri Feb 25 07:18:32 -  1200 - GenerateReplacementString: result 'http://192.168.1.122/Special:UserLogin'
Fri Feb 25 07:18:32 -  1200 - EvaluateRules: Result (length 38): http://192.168.1.122/Special:UserLogin
Fri Feb 25 07:18:32 -  1200 - EvaluateRules: returning 999
Fri Feb 25 07:18:32 -  1200 - DoRewrites: Proxy to: 'http://192.168.1.122/Special:UserLogin'
Fri Feb 25 07:18:32 -  1200 - IirfProxy_SendRequest: http://192.168.1.122/Special:UserLogin
Fri Feb 25 07:18:32 -  1200 - DoRewrites: requires rewrite to: '/proxy.iirf?path=/LM/W3SVC/387710230/Root&url=http://192.168.1.122/Special:UserLogin'
Fri Feb 25 07:18:32 -  1200 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Feb 25 07:18:32 -  1200 - HttpFilterProc: cfg= 0x01CE6708
Fri Feb 25 07:18:32 -  1200 - ReleaseOrExpireVdirConfig: vdir '/LM/W3SVC/387710230/Root' (era=0) (rc=2) (Expired=0) (ptr=0x01CE6708)...
Fri Feb 25 07:18:33 -  1200 - IsIniFileUpdated: D:\Virtual Machines\MindTouch\Iirf.ini NO
Fri Feb 25 07:18:33 -  1200 - GetVdirConfig: Obtain  vdir '/LM/W3SVC/387710230/Root' (era=0) (rc=3) (Expired=0) (ptr=0x01CE6708)...
Fri Feb 25 07:18:33 -  1200 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Feb 25 07:18:33 -  1200 - HttpFilterProc: cfg= 0x01CE6708
Fri Feb 25 07:18:33 -  1200 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Feb 25 07:18:33 -  1200 - DoRewrites
Fri Feb 25 07:18:33 -  1200 - GetHeader_AutoFree: 'url' = '/index.php?title=Special:Userlogin&returntotitle='
Fri Feb 25 07:18:33 -  1200 - GetHeader_AutoFree: 'method' = 'GET'
Fri Feb 25 07:18:33 -  1200 - DoRewrites: New Url, before decoding: '/index.php?title=Special:Userlogin&returntotitle=' 
Fri Feb 25 07:18:33 -  1200 - DoRewrites: Url (no decoding): '/index.php?title=Special:Userlogin&returntotitle='
Fri Feb 25 07:18:33 -  1200 - EvaluateRules: depth=0
Fri Feb 25 07:18:33 -  1200 - EvaluateRules: no RewriteBase
Fri Feb 25 07:18:33 -  1200 - EvaluateRules: Rule 1: pattern: ^/(.*)$  subject: /index.php?title=Special:Userlogin&returntotitle=
Fri Feb 25 07:18:33 -  1200 - EvaluateRules: Rule 1: 2 match
Fri Feb 25 07:18:33 -  1200 - ReplaceServerVariables: alloc 24 bytes
Fri Feb 25 07:18:33 -  1200 - ReplaceServerVariables: in='http://192.168.1.122/$1' out='http://192.168.1.122/$1'
Fri Feb 25 07:18:33 -  1200 - GenerateReplacementString: alloc 71 bytes
Fri Feb 25 07:18:33 -  1200 - GenerateReplacementString: result 'http://192.168.1.122/index.php?title=Special:Userlogin&returntotitle='
Fri Feb 25 07:18:33 -  1200 - EvaluateRules: Result (length 69): http://192.168.1.122/index.php?title=Special:Userlogin&returntotitle=
Fri Feb 25 07:18:33 -  1200 - EvaluateRules: returning 999
Fri Feb 25 07:18:33 -  1200 - DoRewrites: Proxy to: 'http://192.168.1.122/index.php?title=Special:Userlogin&returntotitle='
Fri Feb 25 07:18:33 -  1200 - IirfProxy_SendRequest: http://192.168.1.122/index.php?title=Special:Userlogin&returntotitle=
Fri Feb 25 07:18:33 -  1200 - ProxyRequest: host(192.168.1.122)  path+query(/index.php?title=Special:Userlogin&returntotitle=)
Fri Feb 25 07:18:33 -  1200 - ParseAllRaw: Connection: Keep-Alive

Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-us

Cookie: PHPSESSID=rtdhsijrr3chrsv056qficu1v6; __utmc=92312838; __utma=92312838.605058333.1298519648.1298605271.1298646873.7; __utmz=92312838.1298519648.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=92312838.4.10.1298646873

Host: johnmann.dyndns-free.com
Referer: http://johnmann.dyndns-free.com/
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

Fri Feb 25 07:18:33 -  1200 - ParseAllRaw: hdr Connection: Keep-Alive
Fri Feb 25 07:18:33 -  1200 - ParseAllRaw: hdr Accept: */*
Fri Feb 25 07:18:33 -  1200 - ParseAllRaw: hdr Accept-Encoding: gzip, deflate
Fri Feb 25 07:18:33 -  1200 - ParseAllRaw: hdr Accept-Language: en-us
Fri Feb 25 07:18:33 -  1200 - ParseAllRaw: hdr Cookie: PHPSESSID=rtdhsijrr3chrsv056qficu1v6; __utmc=92312838; __utma=92312838.605058333.1298519648.1298605271.1298646873.7; __utmz=92312838.1298519648.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=92312838.4.10.1298646873
Fri Feb 25 07:18:33 -  1200 - ParseAllRaw: hdr Host: johnmann.dyndns-free.com
Fri Feb 25 07:18:33 -  1200 - ParseAllRaw: hdr Referer: http://johnmann.dyndns-free.com/
Fri Feb 25 07:18:33 -  1200 - ParseAllRaw: hdr User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Fri Feb 25 07:18:33 -  1200 - ParseAllRaw: found 8 headers
Fri Feb 25 07:18:33 -  1200 - GenProxyRequestHeadersString: rh(0x01CE6528) nh(192.168.1.122) sn(johnmann.dyndns-free.com) la(192.168.1.100) ra(76.212.149.94) ts(0)
Fri Feb 25 07:18:33 -  1200 - ProxyRequest: WinHttpConnect 192.168.1.122 80
Fri Feb 25 07:18:33 -  1200 - ProxyRequest: WinHttpOpenRequest: GET /index.php?title=Special:Userlogin&returntotitle=
Fri Feb 25 07:18:33 -  1200 - ProxyRequest: WinHttpAddRequestHeaders
Fri Feb 25 07:18:33 -  1200 - ProxyRequest: WinHttpSendRequest
Fri Feb 25 07:18:33 -  1200 - ProxyRequest: WinHttpReceiveResponse
Fri Feb 25 07:18:34 -  1200 - ProxyRequest: WinHttpQueryHeaders
Fri Feb 25 07:18:34 -  1200 - ProxyRequest: WinHttpQueryHeaders: status 200
Fri Feb 25 07:18:34 -  1200 - Proxy_SetResponseHeaders: starting status 200
Fri Feb 25 07:18:34 -  1200 - Proxy_SetResponseHeaders: status OK
Fri Feb 25 07:18:34 -  1200 - ProcessResponseHeaders: all Date: Fri, 25 Feb 2011 07:18:22 GMT

P3P: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"

Content-language: en-us
Content-Encoding: gzip
Vary: Accept-Encoding,Cookie
Content-Length: 4863
Expires: -1
Cache-Control: private, must-revalidate, max-age=0
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
Via: 1.1 192.168.1.100 (IIRF v2.1)

Fri Feb 25 07:18:34 -  1200 - ProxyRequest: WinHttpReadData 527
Fri Feb 25 07:18:34 -  1200 - ProxyRequest: WinHttpReadData 4336
Fri Feb 25 07:18:34 -  1200 - ProxyRequest: chunks(2) totalBytes(4863)
Fri Feb 25 07:18:34 -  1200 - DoRewrites: Proxy complete: 2 chunks, 4863 bytes'
Fri Feb 25 07:18:34 -  1200 - ReleaseOrExpireVdirConfig: vdir '/LM/W3SVC/387710230/Root' (era=0) (rc=2) (Expired=0) (ptr=0x01CE6708)...
Coordinator
Feb 25, 2011 at 3:58 PM

no, sorry.

I looked through the log file and all the IIRF behavior looks mostly ok.  I'm not clear on why or how, when you request /Special:UserLogin, it apparently results in a new request for /index.php?title=Special:Userlogin&returntotitle=  .  I think you must have something installed on the remote proxy server that performs this transformation.  But it looks like something is just missing from the middle of the IIRF log file, so I can't really tell.  At one point, it say "requires rewrite", and at that point there should be some trace messages for that rewrite, but I don't see any. Or I don't see what I expect to see, as if a section has been cut right out of the middle.

But I think that is not really important, because it seems that IIRF is behaving itself.  I think the problem is this:  your remote app is emitting a hard-coded server address in its response. 

Listen: the proxy function in IIRF strips out server addresses in the Location and Content-Location headers.  This is what proxies do, and this is just how they work. (See the documentation http://cheeso.members.winisp.net/Iirf21Help/html/e4088625-c729-4a3f-9e1a-19b2edda2e19.htm )  If your remote server (the thing at 192.168.1.122 that handles index.php) emits into its HTML response some links for things at that hard-coded server address, the IIRF proxy will pass that response right back to the original requesting app.  

In order to behave well with proxies, apps need to embed their server address only in the headers that can be handled by a proxy server.  All other links should be relative.

So I suggest you look to your app that gets proxied, and make sure it is not hard-coding its address into responses.

Good luck.

 


 

Feb 25, 2011 at 4:13 PM

Thanks for the quick reply!  I was starting to think it was something with my app last night.  I'll go to the community support forums and see what other steps I need to take to finish this project.