I'm using opensuse 10.2 on a 64bit system.

I'm trying to use mod_userdir in apache.  This provides a public_html folder 
in a users home directory to serve web pages.

I have enabled the module in yast.  I have configured the mod_userdir.conf 
file to allow userdir mod for all users, except root.

I have a publically readable public_html folder with an index.html within it- 
that is publicly readable.

I've restarted apache.

When I try to access a user dir file on my system

http://www.mysystem/~user

I get the error:

Object not found!
 The requested URL was not found on this server

When I look at the apache error log it indicates apache was trying find the 
folder ~user in the document root (/srv/www/htdocs/~user) instead 
of /home/user/public_html

It looks like apache isn't using  mod_userdir

Is there another configuration setting required to get the userdir mod working 
properly?

This is my mod_userdir.conf file:
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#

<IfModule mod_userdir.c>
        # Note that the name of the user directory ("public_html") cannot 
easily be
        # changed here, since it is a compile time setting. The apache package
        # would have to be rebuilt. You could work around by deleting
        # /usr/sbin/suexec, but then all scripts from the directories would be
        # executed with the UID of the webserver.
        #
        # To rebuild apache with another setting you need to change the
        # %userdir define in the spec file.

        # not every user's directory should be visible:
        UserDir disabled root

        # to enable UserDir only for a certain set of users, use this instead:
        #UserDir disabled
        UserDir enabled


        # the UserDir directive is actually used inside the virtual hosts, to
        # have more control
        UserDir public_html

        <Directory /home/*/public_html>

                AllowOverride FileInfo AuthConfig Limit Indexes
                Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

                <Limit GET POST OPTIONS PROPFIND>
                        Order allow,deny
                        Allow from all
                </Limit>

                <LimitExcept GET POST OPTIONS PROPFIND>
                        Order deny,allow
                        Deny from all
                </LimitExcept>

        </Directory>

</IfModule>

Thanks,

Gord
-- 
Gordon J. Holtslander           Dept. of Biology
[EMAIL PROTECTED]       University of Saskatchewan
Tel 306 966-4433                112 Science Place
Fax 306 966-4462                Saskatoon SK., CANADA
homepage.usask.ca~gjh289                S7N 5E2
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to