On 10/10/05, Boyle Owen <[EMAIL PROTECTED]> wrote:
> > -----Original Message-----
> > From: Dotan Cohen [mailto:[EMAIL PROTECTED]
> >
> > The server
> > had no problems when the DocRoot was /home/dotancohen/www/public_html.
> > Why should it have any problems when I switch it back to the default,
> > /var/www/html?
>
> There must be something different between the two dirs. Experiment, play 
> around, try some things...
>
> Apache has to be able to read all the files in the docroot. BTW, when 
> posting, always quote verbatim (cut'n'paste) the error message in the 
> error_log and describe what happens without usnig the phrase "doesn't work" 
> (which could mean anything...)
>
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored.
>
> >
> > Dotan Cohen
> > http://technology-sleuth.com/
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP
> > Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >    "   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> This message is for the named person's use only. It may contain confidential, 
> proprietary or legally privileged information. No confidentiality or 
> privilege is waived or lost by any mistransmission. If you receive this 
> message in error, please notify the sender urgently and then immediately 
> delete the message and any copies of it from your system. Please also 
> immediately destroy any hardcopies of the message. You must not, directly or 
> indirectly, use, disclose, distribute, print, or copy any part of this 
> message if you are not the intended recipient. The sender's company reserves 
> the right to monitor all e-mail communications through their networks. Any 
> views expressed in this message are those of the individual sender, except 
> where the message states otherwise and the sender is authorised to state them 
> to be the views of the sender's company.
>


Thanks Owen and everybody else. The error I get in the browser is:
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to
use an ErrorDocument to handle the request.

The error I get in the log is:
[Tue Oct 11 16:47:32 2005] [error] [client 127.0.0.1] (13)Permission
denied: access to / denied
[Tue Oct 11 16:47:32 2005] [error] [client 127.0.0.1] (13)Permission
denied: access to /favicon.ico denied
[Tue Oct 11 16:47:32 2005] [error] [client 127.0.0.1] (13)Permission
denied: access to /favicon.ico denied

The facts are:
When I change the DocRoot back to /home/dotancohen/www/public_html all
works as expected. When I change to /var/www/html I get the errors
described. /var/www and /var/www/html are permissions 744. I restart
apache whenever I change the httpd.conf file.

Might I be changing httpd.cong in a not correct manner? I do it by
commenting/uncommenting these lines:
------
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
DocumentRoot "/var/www/html"
# DocumentRoot "/home/dotancohen/www/public_html"

# This should be changed to whatever you set DocumentRoot to.
<Directory "/var/www/html">
# <Directory "/home/dotancohen/www/public_html">
------

Dotan
http://technology-sleuth.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to