![Netscape ENTERPRISE SERVER 6.1 Manual Download Page 64](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653064.webp)
NameTrans Stage
64
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
Example
NameTrans fn=strip-params
unix-home
Applicable in
NameTrans
-class directives.
UNIX Only.
The
unix-home
function translates user names (typically of the form
~username) into the user’s home directory on the server’s UNIX machine. You
specify a URL prefix that signals user directories. Any request that begins with the
prefix is translated to the user’s home directory.
You specify the list of users with either the
/etc/passwd
file or a file with a similar
structure. Each line in the file should have this structure (elements in the
passwd
file that are not needed are indicated with *):
username:*:*:groupid:*:homedir:*
If you want the server to scan the password file only once at startup, use the
Init-class function
init-uhome
in
magnus.conf
.
Parameters
Examples
See Also
init-uhome, find-links
from
is the URL prefix to translate, usually “
/~
”.
subdir
is the subdirectory within the user’s home directory that
contains their web documents.
pwfile
(optional) is the full path and file name of the password file if
it is different from
/etc/passwd
.
name
(optional) specifies an additional named object whose
directives will be applied to this request.
bucket
optional, common to all
obj.conf
functions
NameTrans fn=unix-home from=/~ subdir=public_html
NameTrans fn=unix-home from /~ pwfile=/mydir/passwd
subdir=public_html
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...