Rewriteproxy not working for certain entries

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 3
Joined: 06 May 2015, 11:20

Rewriteproxy not working for certain entries

06 May 2015, 11:36

Hi,

This is something that has worked OK in the past, but at some point (not exactly sure when) something has changed which now means that some of the rewriteproxy entries are no longer working.

The problem entry from our .htaccess file we have is:
RewriteProxy ^eforms2/(.*) https://eforms/eforms2/$1 [NC,L]

When browsing to our site with a /eforms2/... URL we just get a blank screen. On the web server where helicon ISAPI_Rewrite3 is running if we browse to https://eforms/eforms2/... then we get to the site/pages that we need.

There are other rewriterpoxy entries in the same .htaccess file that work fine such as:
RewriteProxy ^childillness/(.*) http://childillness/$1 [NC,L]

We have enabled the logging as follows:
RewriteLogLevel 9
LogLevel debug

but this does not really give us anything useful. Also in the .htaccess file supress errors is off.

Can anyone suggest some decent logging options so we can see what the problem is or perhaps have any suggestions on what the issue maybe.

Thanks
Cliff

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Rewriteproxy not working for certain entries

07 May 2015, 10:41

Hello Cliff,

>Can anyone suggest some decent logging options so we can see what the problem is or perhaps have any suggestions on what the issue maybe.

Actually "RewriteLogLevel 9" put in httpd.conf should provide records on how the request is processed by ISAPI_Rewrite proxy, which is helpful.

Also please note that this section

<Helicon>
ProxySuppressErrors Off
</Helicon>

can only be put into httpd.conf.

User avatar
Posts: 3
Joined: 06 May 2015, 11:20

Re: Rewriteproxy not working for certain entries

12 May 2015, 06:12

Hello Anton,
Thanks for your reply but having followed your suggestions but we are still NOT seeing any details in the logs that may indicate why the rewriteproxy enteries are not working.

Just confirming the file C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
now has

RewriteLogLevel 9
LogLevel debug

<Helicon>
ProxySuppressErrors Off
</Helicon>

C:\Program Files\Helicon\ISAPI_Rewrite3\error.log

[08/05/2015 13:35:44] C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf - Loaded successfully
[08/05/2015 13:35:47] d:\2010data\sites\www......80\.htaccess - Loaded successfully
[08/05/2015 13:36:03] d:\2010data\sites\www......80\.htaccess - Loaded successfully

Any other thoughts?

Cliff

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Rewriteproxy not working for certain entries

13 May 2015, 06:42

Hello Cliff,

What is more critical is rewrite.log.
Proxy processing is recorded there.
Please find records related to your test request in it.

User avatar
Posts: 3
Joined: 06 May 2015, 11:20

Re: Rewriteproxy not working for certain entries

13 May 2015, 07:24

Hello Anton,

Just checked C:\Program Files\Helicon\ISAPI_Rewrite3\Rewrite.log

Nothing is being written to this file, the size is 0KB.

Thanks

Cliff

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Rewriteproxy not working for certain entries

15 May 2015, 09:59

Hello Cliff,

>Nothing is being written to this file, the size is 0KB.

Well, we need to try and get the logging working in this file, becasue this will show us if request is correctly processed by ISAPI_Rewrite proxy or not.

Please check that ISAPI_Rewrite install folder has List folder content permission granted, and that rewrite.log file has Write permission for the user account running the app pool for the target site.

Also please check IIS log to see the status code returned by IIS for the test request.

You may also consider using Failed request tracing tool in IIS to get the detailed picture of all request ptocessing steps.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 15 guests