Attention! Helicon Tech Blog has moved to

Thursday, February 25, 2010

Two-digit back-references in ISAPI_Rewrite and Ape

We've planned to implement it for a long time and eventually it's done.

In ISAPI_Rewrite and Ape one can have more than 9 submatches and consequently more than 9 back-references in both RewriteCond and RewriteRule (RewriteProxy, RewriteHeader) statements.

The syntax to address these submatches is illustrated in the following example:
RewriteBase /
RewriteCond %{QUERY_STRING} ^id1=(\d+)&id2=(\d+)&...&id10=(\d+)&id11=(\d+)$
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)...
    %1/%2/%3/%4/%5/%6/%7/%8/%9/%%10/%%11?id1=$1&id2=$2&...&id10=$$10&id11=$$11 [L]
Note! This syntax is not supported in Apache.

Note! We highly recommend to avoid rules like that (as they indicate your URLs are not really SEO-friendly), but if there's no other way out, do use it.

We believe this small bit of functionality will save you time and efforts.

Best regards,
Anton, Helicon Tech Team

Tuesday, February 23, 2010

"Zip and save" option in Ape Manager

Hello, everyone!

We want to inform you of a new helpful feature that is available in Helicon Ape and higher.

To make your interaction with our support team more fruitful we've introduced a context menu item "Zip and Save Ape Configuration" that makes an archive including all Ape config files for current location (on which you right-clicked) and its parents, web.config and Ape rewrite and error logs.

Having chosen the option you'll be informed about the files to be included into the package.

Note! All the files taken have proven to be essential for quick/efficient problem solving in most cases.

Notice that you can append additional files to the zip package later.

Finally, you'll be prompted to specify the location for the package to be saved (by default it's Ape installation folder). Our support team will be really grateful to get it for investigation.

We do hope this feature will help our support team resolve your issues within the shorter term.

Best regards,
Anton, Helicon Tech Team

Monday, February 22, 2010

New Helicon Ape released

Hello, everyone.

Good news - we've just released the new build of Helicon Ape -
So, what's new:
  • from now on you can write mod_proxy directives inside .htaccess files (previously only global context was supported);
  • "Zip and save Ape configuration" option in Ape Manager automatically saves and zips all Ape configs and logs for selected location (site, folder) so you could then send them to our support team;
  • bug fix related to processing of long URLs.
Best wishes,
Anton, Helicon Tech Team

Thursday, February 18, 2010

Titbits: Adjusting Coldfusion/ISAPI_Rewrite collaboration

If you have ISAPI_Rewrite3 (Ape) and Coldfusion installed on your server, you may encounter issues with requests to .cfm resources. The problem lies in handler mappings configuration. To resolve it, any handler mappings for *.cfm extension should be mapped to 1\jrun_iis6_wildcard.dll executable (instead of run_iis6.dll).

The following piece of code should be put into the web.config in the root of your site if you are on Windows Server 2008:

<?xml version="1.0" encoding="UTF-8"?>
    <remove name="AboMapperCustom-82624719" />
    <remove name="AboMapperCustom-82624718" />
    <remove name="AboMapperCustom-82624716" />
    <remove name="AboMapperCustom-82624717" />
    <remove name="AboMapperCustom-82624715" />
    <add name="AboMapperCustom-82624715" path="*.cfm" verb="*" modules="IsapiModule"      scriptProcessor="C:\ColdFusion8\runtime\lib\wsconfig\1\jrun_iis6_wildcard.dll"
     resourceType="Unspecified" requireAccess="Script" responseBufferLimit="0" />
    <add name="AboMapperCustom-82624717" path="*.cfc" verb="*" modules="IsapiModule"
     resourceType="Unspecified" requireAccess="Script" responseBufferLimit="0" />
    <add name="AboMapperCustom-82624716" path="*.cfml" verb="*" modules="IsapiModule"
     resourceType="Unspecified" requireAccess="Script" responseBufferLimit="0" />
    <add name="AboMapperCustom-82624718" path="*.cfr" verb="*" modules="IsapiModule"
     resourceType="Unspecified" requireAccess="Script" responseBufferLimit="0" />
    <add name="AboMapperCustom-82624719" path="*.cfswf" verb="*" modules="IsapiModule"
     resourceType="Unspecified" requireAccess="Script" responseBufferLimit="0" />

Anton, Helicon Tech Team