[Xitami] Small modification to ISAPI support

JLIST jlist9 at gmail.com
Wed Apr 30 08:34:06 CEST 2008


Among other things, Xitami's lack of URL rewriting feature
bothers me. So I made a couple of small changes to the ISAPI
add-on, basically adding a -i/-I option to show index.dll. When
no DLL file name is given in the URL, index.dll is used instead.
This makes it possible to have URLs like http://domain/register,
instead of http://domain/isapi_exe/register.dll

127a128
>     show_index     = FALSE;               /* Use index.dll if dll isn't in url */
346a348,350
>                 case 'I':               /* Alway unload ON                   */
>                 case 'i':
>                     show_index = TRUE;      break;
599a604,605
>     static char index[] = "index.dll";
> 
608a615,617
> 
>     if (show_index && (!strstr(path_info, ".dll")))
>         path_info = index;




More information about the Xitami mailing list