I am not able to successfully implement UserDir in Apache.  I am able to 
successfully reach the DocumentRoot.  However, when I include the user's name 
following the domain, for example, "*.com/wendellmoore," I receive a 404 error. 
 Following is some information that should prove useful in understanding my 
environment.

Thanks.

# uname -v >> userdir.txt
FreeBSD 7.3-RELEASE #0: Sun Mar 21 06:15:01 UTC 2010     
r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC

# httpd -v >> userdir.txt
Server version: Apache/2.2.14 (FreeBSD)
Server built:   Feb 22 2010 03:29:08

# httpd -M | grep user >> userdir.txt
 authz_user_module (shared)
 usertrack_module (shared)
 userdir_module (shared)

# cat /usr/local/etc/apache22/Includes/users.txt >> userdir.txt
<IfModule mod_userdir.c>
  UserDir disabled
  UserDir enabled wendellmoore
  UserDir /disk2/*/public>
<IfModule>

# I commented these out after a number of tests to limit the scope of further 
tests.
# I received the 404 error when these were included in the apache server 
configuration.
#<Directory "/usr/home/*/public">
#  Order allow,deny
#  Allow from All
#</Directory>

<Directory "/disk2/*/public">
  Order allow,deny
  Allow from All
</Directory>

# ls -l /disk2 >> userdir.txt
total 4
drwxrwxr-x  2 root          operator      512 Dec 29 11:27 .snap
drwxr-xr-x  4 wendellmoore  wendellmoore  512 Dec 29 12:11 wendellmoore

# cd wendellmoore
# ls -al >> userdir.txt
total 24
drwxr-xr-x  4 wendellmoore  wendellmoore  512 Dec 30 08:43 .
drwxr-xr-x  4 root          wheel         512 Dec 29 11:32 ..
-rw-r--r--  1 wendellmoore  wendellmoore  759 Dec 29 11:36 .cshrc
-rw-r--r--  1 wendellmoore  wendellmoore  258 Dec 29 11:36 .login
-rw-r--r--  1 wendellmoore  wendellmoore  167 Dec 29 11:36 .login_conf
-rw-------  1 wendellmoore  wendellmoore  379 Dec 29 11:36 .mail_aliases
-rw-r--r--  1 wendellmoore  wendellmoore  339 Dec 29 11:36 .mailrc
-rw-r--r--  1 wendellmoore  wendellmoore  774 Dec 29 11:36 .profile
-rw-------  1 wendellmoore  wendellmoore  284 Dec 29 11:36 .rhosts
-rw-r--r--  1 wendellmoore  wendellmoore  980 Dec 29 11:36 .shrc
drwxr-xr-x  2 wendellmoore  wendellmoore  512 Dec 29 12:11 private
drwxr-xr-x  2 wendellmoore  wendellmoore  512 Dec 29 12:12 public

# tail /var/log/httpd-access.log | grep wendellmoore >> userdir.txt
192.168.0.1 - - [30/Dec/2010:08:55:08 -0500] "GET /wendellmoore HTTP/1.1" 404 
210 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) 
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729)"

# tail /var/log/error-access.log | grep wendellmoore >> userdir.txt
[Thu Dec 30 08:55:08 2010] [error] [client 192.168.0.1] File does not exist: 
/usr/local/www/apache22/data/wendellmoore


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to