The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: userdir
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-16-2004
kduffin's Avatar
kduffin kduffin is offline
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
Example:

#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>

Or on a per virtual machine basis:

<VirtualHost *>
ServerAdmin root@somehost.com
DocumentRoot /usr/local/apache-ssl/htdocs
ServerName host.domain.org
UserDir users
ErrorLog /var/log/apache-error.log
CustomLog /var/log/apache-access.log combined
</VirtualHost>

If UserDir is not defined, ~ will not be translated to some directory name, but remain top-level.

Cheers,

Keith