RE: Apache, anyone?


Subject: RE: Apache, anyone?
From: stephen king (sking@chartercollege.edu)
Date: Tue Sep 10 2002 - 16:01:29 AKDT


Thanks, but I already checked that...the index.html file has perms of =
644, and the /home/rippykin.com directory, which is what's referenced in =
the Virtual Hosts section of httpd.conf, has perms of 755. Haven't =
tried changing the owner to apache...I'll try that tonight in addition =
to any other ideas I get off the list. Also, I'm not using symlinks.

-----Original Message-----
From: James Zuelow [mailto:jamesz@ideafamilies.org]
Sent: Tuesday, September 10, 2002 3:57 PM
To: stephen king
Cc: Alaska LUG
Subject: RE: Apache, anyone?

> -----Original Message-----
> From: aklug-bounce@aklug.org [mailto:aklug-bounce@aklug.org]On Behalf =
Of
> stephen king

>
> Problem is, I can't get the web site, even on the local box. From =3D
> outside, I get the following error 403:
> Forbidden
> You don't have permission to access / on this server.=3D20
>
Make sure that the directories you've set up for your virtual hosts are
readable by Apache. So, for example, if they are owned by root:root, =
and
are not world readable, Apache can't serve the files and you get a 403. =
Or
it could be a mismatch between how the files themselves are organized =
and
options set in httpd.conf:

I try to make sure that all html directories/files are owned by Apache.

You'll also see this if the directories are located elsewhere on the =
server
and you're using symlinks to get to them. For example, the server root =
for
a server is /var/www/, and you set the document root for example.com to
/var/www/example/. Then you symlink /var/www/example to =
/opt/example/html/,
where the files really live. Unless you tell Apache that it is OK to =
follow
symlinks you'll get a 403. (Although since I avoid symlinks in these =
cases
I'm a bit rusty on that - search the documentation for symlinks, there =
is a
directive to allow/disallow Apache from following them and I forget =
which is
default.)

Finally, if you have user html directories (such as
/home/joebob/public_html) set up, but don't have the user directories =
set up
in httpd.conf, then www.example.com/~joebob will also return a 403. =
Same
thing will happen if the user sets the read permissions on their =
public_html
directory or contents to be not world readable.

HTH,

James

(I haven't actually had to mess with configuring Apache in a while, so =
my
memory may be faulty)

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Tue Sep 10 2002 - 16:02:26 AKDT