Re: user's personal homepage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2007-03-11 at 00:17 +0100, Manuel Arostegui Ramirez wrote:
> 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                             -   

A blank index.html could be copied to /etc/skel/public_html for new
users, with all the correct perms, you hit it on the head too!! <grins>
Ric


-- 
================================================
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
Linux user# 44256 Sign up at: http://counter.li.org/
http://www.sourceforge.net/projects/oar
http://www.wayward4now.net
================================================



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux