user's personal homepage

Manuel Arostegui Ramirez manuel at todo-linux.com
Sat Mar 10 23:17:46 UTC 2007


El Domingo, 11 de Marzo de 2007 00:06, Ric Moore escribió:
> On Sat, 2007-03-10 at 13:53 +0100, Manuel Arostegui Ramirez wrote:
> > El Sábado, 10 de Marzo de 2007 13:48, KP escribió:
> > > > KP wrote:
> > > >>> KP a écrit :
> > > >>>> Hi
> > > >>>>
> > > >>>> On my fedora 5 box, I want to enable personal homepage to all of
> > > >>>> my users. Can any1 guide me please.
> > > >>>
> > > >>> in /etc/httpd/conf/httpd.conf, see this section:
> > > >>>
> > > >>> <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>
> > > >>>
> > > >>> And don't forget to restart service httpd !!
> > > >>
> > > >> I did as you redirected. But still no directories created for the
> > > >> users i creat. Do I need to creat the directories manually??
> > > >
> > > > yes or you could modify etc/skel - which would only work for new
> > > > users, not preexisting ones though
> > >
> > > Hey Thanx, its working now. But when I send request from my webbroser
> > > its throws the error "403, Forbidden" ????
> > >
> > > KP
> >
> > That's a very common problem check your /home/user/ perms and make sure
> > the apache users o whoever you run apache with is able to read the whole
> > PATH , not only the /home/user/public_html/
>
> Maybe it's barfing when the user doesn't have an index.html page in
> their directory? Permissions need to be set too, wouldn't they? Ric
>

You totally hit the nail on the head :)
But, what if by default apache has been configured to list all the directories 
and files if there's no index.html inside public_html ? The 403 error will be 
still there, so if you set up perms to 711 to /home/user/public_html and 
there's no index, you will find the typical:
Index of /~foo

Icon  Name                    Last modified      Size  Description[DIR] Parent 
Directory                             -   

All the best!
-- 
Manuel Arostegui Ramirez.

Electronic Mail is not secure, may not be read every day, and should not
be used for urgent or sensitive issues.




More information about the fedora-list mailing list