[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

virtual hosts, file mapping



i don't know how to modify tux kernel patch to map objectnames to files,
and since kernel compilation, reboots take a while, i'm looking for some help

eg. /X/key/file -> /home/y/file

any hint where could i put a code like this

if( ! strncmp(req->objectname,"/X/",3) )
{
   char *key = NULL;
   if( ! (key= strchr( req->objectname+3, '/' )) ) return ACCESS_DENIED; 
   *key = 0;
   if( checkKey( req, key+1 ) < 0 ) return ACCESS_DENIED; 
   *key = '/';
   sprintf( fileToSend, "/home%s", key );
}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]