[NTLUG:Discuss] named virtual server question
Alton Pouncey
alton at trainers-r-us.com
Wed Sep 5 21:41:06 CDT 2001
Bobby Wrenn wrote:
>
> I am trying to host a domain for a friend. I currently have several
> virtuals set up and running in my /home/httpd directory tree. I want to
> be able to let my friend upload his pages so I set his document root to
> /home/username/public_html. I put his docs in this directory and get the
> following error when I try to browse.
>
> You don't have permission to access / on this server.
>
> I have checked ownership and permissions and find nothing unusual.
>
> I have only changed the setting in /etc/httpd/conf/httpd.conf. What
> config file am I missing.
> --
> This tagline is identical to the one you are reading.
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
I ran into this when setting up a virtual host on my system for my
father in-law. Make sure:
A) /home/username has permissions set to at least 744
B) /home/username has similar permissions to (A)
C) that the server can read ~username/public_html. There is a section
in the httpd.conf that has an example for a site where home directories
are restricted to read-only. Make sure to set the options correctly in
that section or /home/*/public_html won't be readable
Checking those 3 things fixed the problem for me. The httpd.conf file
should be the only one you need to edit.
--
Alton R. Pouncey, II
SCSA, SCSA, CCNA, CIW Associate
Director of Information Services
'print pack("H*","616c746f6e40747261696e6572732d722d75732e636f6d"), $/'
More information about the Discuss
mailing list