Sun Java System Web Server 7.0 Update 4 Administrator's Guide

ProcedureConfiguring Document Directories

  1. From the virtual server page, click the Content Handling tab.

  2. Click Document Directories.

  3. Under User Document Directories, choose a user URL prefix.

    The usual prefix is ~ because the tilde character is the standard UNIX/Linux prefix for accessing a user’s home directory.

  4. Choose the subdirectory in the user’s home directory where the server looks for HTML files.

    A typical directory is public_html.

  5. Designate the password file.

    The server needs to know where to look for a file that lists users on your system. The server uses this file to determine valid user names and to find their home directories. If you use the system password file for this purpose, the server uses standard library calls to look up users. Alternatively, you can create another user file to look up users. You can specify that user file with an absolute path.

    Each line in the file should have this structure (the elements in the /etc/passwd file that aren’t needed are indicated with *):


  6. Choose whether to load the password database at startup.

  7. Click Save.

    For more information, see the online help for the User Document Directories page.

    Another way to give users separate directories is to create a URL mapping to a central directory that all of your users can modify.