[H-GEN] Apache Question

Joel Michael joel at jmichael.bpa.nu
Wed Aug 6 22:49:34 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

On Thu, 2003-08-07 at 12:33, Andrew Pullin wrote:
> At present, I have turned off the security feature that normally
> prevents Apache serving home directories and I have set up the appropriate
> public_html directory in my home directory. When I try to get a directory
> listing through my browser of this directory, using http://mymachine/~user/,
> I get an error about not having permissions for this directory, but the
> Apache error log says the error is trying to connect to a non-existing
> directory, i.e. DocumentRoot - /var/www/html/~user. How do I fix this?
> 
Have you loaded the userdir module, and set the UserDir directive?  I
can't check an Apache 2.0 machine at the moment, so I'm basing this in
Apache 1.3 which may or may not be the same, but you should have
something similar to (most of) these:

LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
UserDir public_html
<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        Order deny,allow
        Deny from all
    </Limit>
</Directory>

The apache manual at either http://yourmachine/manual/ or
http://httpd.apache.org/docs-2.0/ will be able to guide you in more
detail.

In fact, a quick look at that found
http://httpd.apache.org/docs-2.0/howto/public_html.html which may fit
your needs exactly.
-- 
Joel Michael
This Linux guru needs work! http://jmichael.bpa.nu/resume.html

A. Because we read from left to right and from top to bottom!
Q. Why should I place my response below the quoted text?


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list