Subject: RE: Apache, anyone?
From: James Zuelow (jamesz@ideafamilies.org)
Date: Tue Sep 10 2002 - 15:56:56 AKDT
> -----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 =
> outside, I get the following error 403:
> Forbidden
> You don't have permission to access / on this server.=20
>
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 - 15:57:24 AKDT