virtual hosts, file mapping
Armen Eyal <[email protected]> Mon, 7 Mar 2005 02:21:22 +0100
| Newsgroups | gmane.network.tux |
|---|---|
| Message-ID | <[email protected]> |
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 );
}