userdir


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers userdir
# 1  
Old 01-16-2004
userdir

In the apache documentation, they say to enable UserDir for all users except a specific list, write this:

UserDir Enabled
UserDir Disabled user1 user2 user3

But configtest gives me:

"Syntax error on line 533 of httpd.conf:
UserDir "enable" keyword requires a list of usernames."

When I set it up to disable for all users and enable for a specific list, it works fine:

UserDir Enabled user1 user2 user3
UserDir Disabled

Apache also says this will only work for 1.3 and above, but I'm running 1.3. What is going on?
# 2  
Old 01-17-2004
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. BSD

Problem userdir ~username on apache

i have problem user cannot add or edit file on their directory i mean /home/user/public_html i have httpd.conf like this : ................ # UserDir Include etc/apache22/extra/httpd-userdir.conf and httpd-userdir.conf ................ # UserDir public_html UserDir disabled... (2 Replies)
Discussion started by: moslemovic
2 Replies
Login or Register to Ask a Question