Tony Nguyen wrote:
> ludo wrote:
>> I see that the mod_userdir.so module loaded in conf.d/modules-32.load
>> file, but when I add a line:
>>
>> UserDir public_html
>>
>> in httpd.conf, restart and create a ~/public_html/index.html file,
>> I get a "client denied server configuration:
>> /export/home/ludo/public_html" error
>>
>> I guess I must be missing something obvious...A Google search gives
>> me 100s of entries, and I still feel the need to ask the question to
>> this alias:)
>>
>> Ludo (the non -apache guru-
> Any interesting information in access or error log?
>
> -tony
Nothing more than the "client denied" error.
I have to add a specific <Directory> directive to make it work...but it
is not perfect since the UserDir is looking I think at /etc/passwd to
calculate the path, but the <Direcory... needs an absolute path, so
things could be out of sync if a home dir is changed...
UserDir public_html
<Directory "/export/home/*/public_html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Also, the apache 2.2 default httpd.conf file does not document (as a
comment) these configurations... Old versions used to do that if I remember.
Ludo