[ic] IC5 -> IC6

Stefan Hornburg (Racke) racke at linuxia.de
Thu Apr 3 07:35:58 UTC 2014

On 04/02/2014 08:35 PM, William Carr wrote:
> On Apr 2, 2014, at 2:28 PM, Jon Jensen <jon at endpoint.com> wrote:
>> On Wed, 2 Apr 2014, William Carr wrote:
>>> Is it possible to have a hybrid site where some of the pages are IC5 and some are IC6? What are the general things I'd have to do to make that happen?
>> Certainly.
>> You could have IC5 and IC6 integrate directly somehow, but a more general solution would apply to any two or more web app technologies living on the same virtual host (including PHP, Rails, or whatever): Use your web server to carve up the URL space such that e.g. /ic5 URLs go to your Interchange 5 app and /ic6 URLs go to your Interchange 6 app.
>> In practice, Interchange 5 typically expects to own the whole URL space, so it's easiest to map e.g. /ic6 to your new app and then default everything else to be served as static files if they exist, or by Interchange as a fallback.
>> For example, in Apache, you could do something like:
>> # Serve Interchange 6 URLs
>> RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
>> RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-l
>> RewriteRule ^/ic6(/.*) http://localhost:8443/$1 [P]
>> ProxyPassReverse /ic6/ http://www.your.domain/
>> # Let Apache handle URIs whose first directory component exists in the docroot
>> # This is a performance tweak to keep Interchange from handling *all* 404s
>> RewriteCond %{REQUEST_URI} ^(/[^/]+)
>> RewriteCond %{DOCUMENT_ROOT}%1 -d
>> RewriteRule ^ - [L]
>> # Everything else is handled by Interchange
>> RewriteRule ^/(.*) /cgi-bin/catalog/$1 [PT,L]
> Cool, thanks. That helps.
> What about session data? Could there be a notion of sharing session data between IC5 and IC6?

We did a proof of concept for a client. This plugin read / writes IC5 session data from Dancer.
Please consider that this isn't tested very well and might not really reliable at this point.


Further enhancements are planned.


LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

More information about the interchange-users mailing list