Hi,
Thanks for offering a better solution.

Venkatesh

--- A V Flinsch <[EMAIL PROTECTED]> wrote:
> On Saturday 17 February 2001 01:38, you wrote:
> > Hi all,
> >
> > Please ignore my earlier (trivial) question.
> > The problem arose because the
> > users home and public_html
> > directories did not have search permission.
> > This has now been fixed.
> >q
> 
> That is one way to fix the problem. I don't
> particulary like that method 
> since other user's on the box can then browse the
> home directory of the 
> webuser.
> 
> I prefer the following solution, as it prevents
> browsing of a user's home 
> directory. This is done by changinh the default user
> directory in apache, 
> and giving users a link to a subdirectory within
> something owned by 
> apache.
> 
> change UserDir in httpd.conf to /home/httpd/
> 
> create a directory in /home/httpd/ for each web user
> 
> chown $USER:$USER /home/httpd/$USER
> chmod 755 /home/httpd/$USER
> 
> ln -s /home/httpd/$USER /home/$USER/public_html
> chown $USER:$USER /home/$USER/public_html
> chmod 700 /home/$USER/public_html
> 
> 
> 
> 
> > >
> > > While using Apache 1.3.14 on Mandrake7.2,
> > > I am getting permission error when
> > > I try to access a html document in the
> > > users public_html directory.
> > >
> > > To explain the situation in more detail;
> > >
> > > I created a public_html directory in
> > > the /home/username directory and created a
> > > index.html
> > > document within it.
> > >
> > > I try to access the page with
> > > http://localhost/~username and get the
> "Forbidden"
> > > error. The error_log does not show any errors.
> > >
> > > I can only access the page by changing the owner
> of
> > > /home/username and /home/username/public.html
> > > to the user ID of the web server.
> > >
> > > How can I have the user's web page accessed
> without
> > > changing the ownership of the users home and
> > > public_html driectories.
> > >
> > > Thanks in advance
> > >
> > > Venkatesh
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Get personalized email addresses from Yahoo!
> Mail -
> > > only $35
> > > a year!  http://personal.mail.yahoo.com/
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> - only $35
> > a year!  http://personal.mail.yahoo.com/
> 
> -- 
> Alex
> (Go easy on me, I'm a COBOL programmer in real life)
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Reply via email to