Route to different application folders

Topics: User Forum
Mar 1, 2010 at 11:18 AM
Edited Mar 1, 2010 at 11:21 AM

Hi, this is my first post (and my first attempt to use IIRF) :)

In my web server (with IIS 6.0) I have different directories with different versions of the same applications; for example:

  1. c:\Path\MyAppV1.0
  2. c:\Path\MyAppV2.0
  3. c:\Path\MyAppV3.0

At the moment, all requests to point to c:\Path\MyAppV3.0, but I have the need, for certain directoryNames, to route to different application folders.

For example:

  • should route to c:\Path\MyAppV2.0
  • should route to c:\Path\MyAppV1.0

Is this possible with IIRF?

(and sorry for my bad english) :)

EDIT: the application in written in ASP.NET MVC, so it's already doing its own routings...

Mar 1, 2010 at 6:35 PM

yes, it's possible to do what you want with IIRF. With something like this:

RewriteRule ^/(MyExceptionalDirectory)(/?.*)  /WebApp20/$1$2

To work the way you describe, http://server/WebApp20/whatever must be accessible on the server. I don't know what urlsubfix is, if that is intended to represent a wildcard in your url space or an actual fixed part of a URL, or something else.  Regardless, something like the above should work for you. Try it out.

Mar 2, 2010 at 8:32 AM

@Cheeso: it worked like a charm, thanks :)

(of course, adapting the rule to my url structure)

Yesterday I've read about the "map file"; is it a feature of the iirf beta release only?

Mar 2, 2010 at 12:32 PM

Yes, the map file was added to IIRF in v2.1. 

Actually it is the only feature differentiating v2.1 from v2.0 .