Helicon Ape v3.1.0.256 bug: not logging REQUEST-URI to IIS l

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 11
Joined: 23 Jul 2014, 04:32
Location: Groningen, the Netherlands

Helicon Ape v3.1.0.256 bug: not logging REQUEST-URI to IIS l

10 Feb 2019, 07:19

I emailed this to support@ last week, but haven't received a reply yet.

We just noticed a bug with Helicon Ape logging the request to IIS' log file: It is not logging the REQUEST-URI, but the rewritten URL.

Unfortunately we were unable to determine in which version version this problem started. We have a valid Helicon Ape license.


File information:

PS D:\> (Get-ItemProperty C:\vevida\Ape\bin\Helicon.Ape.dll).VersionInfo.FileVersion
3.1.0.256

PS D:\> gacutil.exe /l Helicon.Ape
Microsoft (R) .NET Global Assembly Cache Utility. Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.

The Global Assembly Cache contains the following assemblies:
Helicon.Ape, Version=3.1.0.256, Culture=neutral,PublicKeyToken=95bfbfd1a38437eb, processorArchitecture=MSIL

Number of items = 1


Example .htaccess:

RewriteEngine On
RewriteBase /
RewriteRule ^foo\.htm$ upload.asp [NC,L]


Log files:

- IIS Failed Request Tracing log file snippet:

Upgrade-Insecure-Requests: 1
X-REQUEST-URI: /foo.htm
X-Rewrite-Url: /foo.htm
X-Original-Url: /foo.htm
X-logio_http_input_size: 0
X-logio_request_headers_size: 1242
X-REQUEST_URI: /upload.asp
X-SUBREQEST-LEVEL: 1


- IIS HTTP log lines:

#Software: Microsoft Internet Information Services 8.5
#Version: 1.0
#Date: 2019-02-04 14:39:57
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken
2019-02-04 14:39:57 77.94.254.233 GET /upload.asp - 443 - 203.0.113.15 Mozilla/5.0+(X11;+Fedora;+Linux+x86_64;+rv:65.0)+Gecko/20100101+Firefox/65.0 - example.com 200 0 0 309 1225 1468
2019-02-04 14:39:57 77.94.254.233 GET /favicon.ico - 443 - 203.0.113.15 Mozilla/5.0+(X11;+Fedora;+Linux+x86_64;+rv:65.0)+Gecko/20100101+Firefox/65.0 - example.com 404 0 2 5237 1246 31


- Ape debug log file

203.0.113.15 203.0.113.15 [04/Feb/2019:15:02:57] [example.com/sid#2662][rid#13062350/initial] (1) [perdir d:\www\example.com\www\] init rewrite engine with /foo.htm
203.0.113.15 203.0.113.15 [04/Feb/2019:15:02:57] [example.com/sid#2662][rid#13062350/initial] (5) [perdir d:\www\example.com\www\] strip matching prefix: /foo.htm -> foo.htm
203.0.113.15 203.0.113.15 [04/Feb/2019:15:02:57] [example.com/sid#2662][rid#13062350/initial] (5) [perdir d:\www\example.com\www\] add per-dir prefix: upload.asp -> /upload.asp
203.0.113.15 203.0.113.15 [04/Feb/2019:15:02:57] [example.com/sid#2662][rid#13062350/initial] (1) [perdir d:\www\example.com\www\] Rewrite URL to >> /upload.asp [REWRITE]
203.0.113.15 203.0.113.15 [04/Feb/2019:15:02:57] [example.com/sid#2662][rid#13062350/initial] (3) [perdir d:\www\example.com\www\] applying pattern '^foo\.htm$' to uri 'foo.htm' -> '/upload.asp'
203.0.113.15 203.0.113.15 [04/Feb/2019:15:02:57] [example.com/sid#2662][rid#13062350/initial] (1) [perdir d:\www\example.com\www\] Rewrite URL /foo.htm to >> /upload.asp [INTERNAL_REDIRECT]
203.0.113.15 203.0.113.15 [04/Feb/2019:15:02:57] [example.com/sid#2662][rid#63840421/initial/1] (5) [perdir d:\www\example.com\www\] strip matching prefix: /upload.asp -> upload.asp
203.0.113.15 203.0.113.15 [04/Feb/2019:15:02:57] [example.com/sid#2662][rid#63840421/initial/1] (3) [perdir d:\www\example.com\www\] pattern '^foo\.htm$' does not match uri 'upload.asp'
203.0.113.15 203.0.113.15 [04/Feb/2019:15:02:57] [example.com/sid#2662][rid#59408853/initial] (1) [perdir d:\www\example.com\www\] init rewrite engine with /favicon.ico
203.0.113.15 203.0.113.15 [04/Feb/2019:15:02:57] [example.com/sid#2662][rid#59408853/initial] (5) [perdir d:\www\example.com\www\] strip matching prefix: /favicon.ico -> favicon.ico
203.0.113.15 203.0.113.15 [04/Feb/2019:15:02:57] [example.com/sid#2662][rid#59408853/initial] (3) [perdir d:\www\example.com\www\] pattern '^foo\.htm$' does not match uri 'favicon.ico'

The Helicon Ape configuration file in use is the default 'Server (full)' installation option configuration file.

I hope you can point us in the right direction or fix this bug with Helicon Ape.

Regards,

Jan Reilink
Vevida web hosting

User avatar
Posts: 16
Joined: 20 Nov 2013, 13:10

Re: Helicon Ape v3.1.0.256 bug: not logging REQUEST-URI to I

22 Apr 2019, 13:47

Hi!

Don't know if it is still relevant, but you can try adding the [U] flag of RewriteRule:

Unmanglelog or U — logs the URL as it was originally requested and not as the URL was rewritten

This should help
swobi

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 9 guests