[K12OSN] Apache userdir not working

Jesus Aneiros Sosa jas at ehtcf.co.cu
Wed Jan 5 14:09:49 UTC 2005


> Removed the line as Jesus said but still having the same error:

Sorry for deleting the line. You must uncomment and change to UserDir enable.

--aneiros.

>
> <IfModule mod_userdir.c>
>     #
>     # UserDir is disabled by default since it can confirm the presence #
> of a username on the system (depending on home directory
>     # permissions).
>     #
>
>     #
>     # To enable requests to /~user/ to serve the user's public_html #
> directory, remove the "UserDir disable" line above, and uncomment #
> the following line instead:
>     #
>     UserDir public_html
>
> </IfModule>
>
> #
> # Control access to UserDir directories.  The following is an example #
> for a site where these directories are restricted to read-only.
> #
> <Directory /home/*/public_html>
>     AllowOverride FileInfo AuthConfig Limit
>     Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
> <Limit GET POST OPTIONS>
>         Order allow,deny
>         Allow from all
>     </Limit>
>     <LimitExcept GET POST OPTIONS>
>         Order deny,allow
>         Deny from all
>     </LimitExcept>
> </Directory>
>
> Permissions have been changed to 711 for /home/jack  and 755 for
> public_html.  I've done this before.  Sometimes Apache is a mystery for
> me.
>
> Jack
>
>
> On Wed, 2005-01-05 at 05:19 +0530, Sudev Barar wrote:
>> On Tue, 2005-01-04 at 06:31 -0500, Jack wrote:
>> > For some reason I am not able to get Apache to display the
>> public_html contents of a users home directory to work.  I keep
>> getting a 403 error Forbidden.
>> >
>> > The log has this line:
>> > [Tue Jan 04 06:00:37 2005] [error] [client 192.168.1.130]
>> (13)Permission denied: access to /~jack denied
>> >
>> > The whole url would be:  http://homeserver/~jack
>> >
>> > I've uncommented the userdir section in the httpd.conf file and
>> restarted apache:
>> >
>> > <IfModule mod_userdir.c>
>> >     #
>> >     # UserDir is disabled by default since it can confirm the
>> presence # of a username on the system (depending on home
>> directory # permissions).
>> >     #
>> >     # UserDir disable
>> >
>> >     #
>> >     # To enable requests to /~user/ to serve the user's public_html
>> # directory, remove the "UserDir disable" line above, and
>> uncomment # the following line instead:
>> >     #
>> >     UserDir public_html
>> >
>> > </IfModule>
>> >
>> >  That should do it but it doesn't work.  I'm not sure what I am
>> missing
>> > here.
>> >
>> > As a last resort I've made the permissions for the /home/jack
>> directory 777
>> >
>> > Also the /home is set for 777
>>
>> You need to set /home/user to 711 and /home/user/public_html to 755
>> Setting 777 is not the answer. Try using chmod -R 711 /home/user.
>>
>> HTH
>>
> --
> Jack <jackpal at cfl.rr.com>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
> --
> Mensaje analizado en busca de virus y otros
> contenidos peligrosos, se considera que está limpio.
> MailScanner en la EHT "Perla del Sur".




-- 
Mensaje analizado en busca de virus y otros
contenidos peligrosos, se considera que está limpio.
MailScanner en la EHT "Perla del Sur".




More information about the K12OSN mailing list