User Directories On FreeBSD 8.0-RELEASE

Programmer In Training pit at
Thu Feb 18 20:09:24 UTC 2010

On 02/18/10 13:46, Chuck Swiger wrote:
> Whether the path to user home directories is honored or whether
> Apache goes somewhere else for HTTP requests for /~user/foo.html
> depends on what you set UserDir to:
> It's possible that using:
> UserDir /usr/home/*/public_html
> ....will do better, if that is the actual path being used.

That's what I have it set to and it isn't honoring that. That's part of
what is bothering me (and what I suspect the issue might be).

>> See, now that's helpful. Thank you. No one suggested that. Will add
>> it and see if that changes anything.
> I suspect you already have it, according to what you'd shown in the
> prior mail.  Using FollowSymLinks instead might be necessary
> depending on what you do with UserDir.

I did, but now I have both in the httpd-userdir.conf to no avail, same
with main conf.

>> I rolled my own because I couldn't even get Apache from ports to
>> start with the default http.conf file provided.
> Hmm, unexpected.  What did apachectl configtest say?

I don't remember, but I was so frustrated I wasn't really paying that
much attention (it's been a month since I tried ports Apache).

Alright, here is the errors I'm getting (I set the loglevel to debug
instead of just warn):

[Thu Feb 18 14:01:01 2010] [notice] Apache/2.2.14 (Unix) configured --
resuming normal operations
[Thu Feb 18 14:01:01 2010] [info] Server built: Feb 13 2010 06:46:20
[Thu Feb 18 14:01:01 2010] [debug] prefork.c(1013): AcceptMutex: flock
(default: flock) <--- not sure what that is all about
[Thu Feb 18 14:01:08 2010] [error] [client] client denied by
server configuration: /home/user1/public_html
[Thu Feb 18 14:01:10 2010] [error] [client] client denied by
server configuration: /home/user1/public_html

UserDir file configuration:

UserDir disabled
UserDir enabled user1 user2
^^^^^<--- Those options as per the UserDir section in the manual, just
added them not two minutes before typing this out
UserDir public_html

# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
<Directory /usr/home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes FollowSymlinks SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    <LimitExcept GET POST OPTIONS>
        Order deny,allow
        Deny from all

This really stinks. Is Apache 1.13 available? I don't remember having
these problems with it.
Yours In Christ,

Emails are not formal business letters, whatever businesses may want.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-questions mailing list