bunch of things:

1. it doesn't matter who you are logged in as.  the web server daemon
(httpd) takes requests from anyone, and accesses your file system as user
nobody. (I think, can someone clarify this?) The 'packets' that it receives
do not include who you are.

2. in order for httpd to read the directory, you need execute rights on the
dir:
# chmod a+x html/
# ls -ld html/
drwxr-xr-x    3 root     root         1024 Feb  3 10:35 html/

You need this on all the dirs from your VFS root (/) to your "document root"
(defaults to /home/httpd/html) so:
# chmod a+x /home
# chmod a+x /home/httpd
# chmod a+x /home/httpd/html

3. > I use telnet XXX.XXX.XXX.XXX 80 as root
port 80 is what httpd listens to, and again, it doesn't receive who you are.
try it again, and enter "get"+enter.  httpd should spit back an error
because I don't know what a valid get command is.  but you'll get the
picture.

4. >I have root dir as /home/httpd/html - when the message says I do not
have
permission to access "/"  is that the file system root?

No, that is the "document root"




----- Original Message -----
From: Robert D. Williams <[EMAIL PROTECTED]>
To: RedHat <[EMAIL PROTECTED]>
Sent: Monday, February 14, 2000 3:49 PM
Subject: Can not get access to local www


>
>
> Using Netscape I get (http://localhost):
> "
> Forbidden
>
> You don't have permission to access / on this server.
>
>
> Apache/1.3.9 Server at http://XXX.XXX.XXX.XXX Port 80
> "
>
> This happens when I am myself and root.  I looked at the permissions and
they
> are 644 - correct (/home/httpd...).   I use telnet XXX.XXX.XXX.XXX 80 as
root
> and it says I can not access the web server.
>
> I have root dir as /home/httpd/html - when the message says I do not have
> permission to access "/"  is that the file system root?
>
> Please help!
>
>
> --
> Robert Williams    [EMAIL PROTECTED]
> Jarob Consulting   [EMAIL PROTECTED]
> Provo, Utah
>
>
> --
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
>


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to