You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ming Tang <mt...@insightbb.com> on 2006/05/23 14:41:11 UTC

[users@httpd] FW: Apache Permission Error

Hi there,

I intalled Apache 2.1.4 recently using ports on a computer with OS of
FreeBSD Release 5.4. The software compiled fine, and installed without
error. I could access my root web page if I don't run name-based virtual
hosts. As soon as I include virtual hosts part in httpd.conf. I got the
following errors. I checked all directory/file permission. They are all set
as read, write and executable now. I checked DirectoryIndex, etc. They seems
all covered for index.html, index.htm, etc. I am not running any secure http
servers, and could not find any file for ".htaccress" using find command. No
matter what I do I got the same error message. Can anyone help to provide a
hint on solving the problem?


Thanks a lot in advance.

Regards,

Ming Tang

----------------------------------------------------------------------------
Error Message on client's web page (http://www.homepage.com):

Forbidden
You don't have permission to access / on this server.

Apache/2.1.4 (FreeBSD) Server at www.homepage.com Port 80

----------------------------------------------------------------------------

Error Message in web page's access log file:

[Thu May 18 02:07:37 2006] [error] [client 74.136.xxx.xxx] client denied by
server configuration: /usr/www/homepage/
----------------------------------------------------------------------------

The following error message occurs even before I started name-based virtual
hosts. So really only http://www.homepage.com works if I don't run
name-based virtual hosting.

Error message on client's web page (http://www.homepage.com/~usename/):

Forbidden
You don't have permission to access /~username/ on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an
ErrorDocument to handle the request.

Apache/2.1.4 (FreeBSD) Server at www.homepage.com Port 80





---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] FW: Apache Permission Error

Posted by Ming Tang <mt...@insightbb.com>.
Joost,

I add an entry for <Directory /usr/www/homepage>. It works now.
Thanks for the timely help. I really appreciate it.


- Ming
 

-----Original Message-----
From: Joost de Heer [mailto:sanguis@xs4all.nl] 
Sent: Wednesday, May 24, 2006 2:17 AM
To: mtang@insightbb.com
Cc: Victor Trac; users@httpd.apache.org
Subject: Re: [users@httpd] FW: Apache Permission Error

mtang@insightbb.com wrote:
> Victor,
>
> Thanks for the reply. Attached here is the configuration file.

>> > [Thu May 18 02:07:37 2006] [error] [client 74.136.xxx.xxx]
>> client denied by
>> > server configuration: /usr/www/homepage/

You have a <Directory /> Deny all and not a <Directory /usr/www/homepage>
Allow all.

Joost


---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] FW: Apache Permission Error

Posted by Joost de Heer <sa...@xs4all.nl>.
mtang@insightbb.com wrote:
> Victor,
>
> Thanks for the reply. Attached here is the configuration file.

>> > [Thu May 18 02:07:37 2006] [error] [client 74.136.xxx.xxx]
>> client denied by
>> > server configuration: /usr/www/homepage/

You have a <Directory /> Deny all and not a <Directory /usr/www/homepage>
Allow all.

Joost


---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] FW: Apache Permission Error

Posted by mt...@insightbb.com.
Victor,

Thanks for the reply. Attached here is the configuration file.

Ming

----- Original Message -----
From: Victor Trac 
Date: Tuesday, May 23, 2006 11:54 am
Subject: Re: [users@httpd] FW: Apache Permission Error
To: users@httpd.apache.org, mtang@insightbb.com

> Instead of telling us your configuration is correct (which it
> obviously isn't) perhaps it would be easier for us to help if 
> you post
> the actual configuration. I'd look at NameVirtualHost and all
> directives.
> 
> -Victor
> 
> On 5/23/06, Ming Tang wrote:
> > Hi there,
> >
> > I intalled Apache 2.1.4 recently using ports on a computer 
> with OS of
> > FreeBSD Release 5.4. The software compiled fine, and installed 
> without> error. I could access my root web page if I don't run 
> name-based virtual
> > hosts. As soon as I include virtual hosts part in httpd.conf. 
> I got the
> > following errors. I checked all directory/file permission. 
> They are all set
> > as read, write and executable now. I checked DirectoryIndex, 
> etc. They seems
> > all covered for index.html, index.htm, etc. I am not running 
> any secure http
> > servers, and could not find any file for ".htaccress" using 
> find command. No
> > matter what I do I got the same error message. Can anyone help 
> to provide a
> > hint on solving the problem?
> >
> >
> > Thanks a lot in advance.
> >
> > Regards,
> >
> > Ming Tang
> >
> > ---------------------------------------------------------------
> -------------
> > Error Message on client's web page (http://www.homepage.com):
> >
> > Forbidden
> > You don't have permission to access / on this server.
> >
> > Apache/2.1.4 (FreeBSD) Server at www.homepage.com Port 80
> >
> > ---------------------------------------------------------------
> -------------
> >
> > Error Message in web page's access log file:
> >
> > [Thu May 18 02:07:37 2006] [error] [client 74.136.xxx.xxx] 
> client denied by
> > server configuration: /usr/www/homepage/
> > ---------------------------------------------------------------
> -------------
> >
> > The following error message occurs even before I started name-
> based virtual
> > hosts. So really only http://www.homepage.com works if I don't run
> > name-based virtual hosting.
> >
> > Error message on client's web page 
> (http://www.homepage.com/~usename/):>
> > Forbidden
> > You don't have permission to access /~username/ on this server.
> >
> > Additionally, a 403 Forbidden error was encountered while 
> trying to use an
> > ErrorDocument to handle the request.
> >
> > Apache/2.1.4 (FreeBSD) Server at www.homepage.com Port 80
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------
> ------
> > The official User-To-User support forum of the Apache HTTP 
> Server Project.
> > See for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > " from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> 
> 
> -- 
> http://www.victortrac.com
> 

- Ming

Re: [users@httpd] FW: Apache Permission Error

Posted by Victor Trac <vi...@gmail.com>.
Instead of telling us your configuration is correct (which it
obviously isn't) perhaps it would be easier for us to help if you post
the actual configuration.  I'd look at NameVirtualHost and all
<VirtualHost> directives.

-Victor

On 5/23/06, Ming Tang <mt...@insightbb.com> wrote:
> Hi there,
>
> I intalled Apache 2.1.4 recently using ports on a computer with OS of
> FreeBSD Release 5.4. The software compiled fine, and installed without
> error. I could access my root web page if I don't run name-based virtual
> hosts. As soon as I include virtual hosts part in httpd.conf. I got the
> following errors. I checked all directory/file permission. They are all set
> as read, write and executable now. I checked DirectoryIndex, etc. They seems
> all covered for index.html, index.htm, etc. I am not running any secure http
> servers, and could not find any file for ".htaccress" using find command. No
> matter what I do I got the same error message. Can anyone help to provide a
> hint on solving the problem?
>
>
> Thanks a lot in advance.
>
> Regards,
>
> Ming Tang
>
> ----------------------------------------------------------------------------
> Error Message on client's web page (http://www.homepage.com):
>
> Forbidden
> You don't have permission to access / on this server.
>
> Apache/2.1.4 (FreeBSD) Server at www.homepage.com Port 80
>
> ----------------------------------------------------------------------------
>
> Error Message in web page's access log file:
>
> [Thu May 18 02:07:37 2006] [error] [client 74.136.xxx.xxx] client denied by
> server configuration: /usr/www/homepage/
> ----------------------------------------------------------------------------
>
> The following error message occurs even before I started name-based virtual
> hosts. So really only http://www.homepage.com works if I don't run
> name-based virtual hosting.
>
> Error message on client's web page (http://www.homepage.com/~usename/):
>
> Forbidden
> You don't have permission to access /~username/ on this server.
>
> Additionally, a 403 Forbidden error was encountered while trying to use an
> ErrorDocument to handle the request.
>
> Apache/2.1.4 (FreeBSD) Server at www.homepage.com Port 80
>
>
>
>
>
> ---------------------------------------------------------------------
> 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: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
http://www.victortrac.com

[users@httpd] Re: FW: Apache Permission Error

Posted by Joost de Heer <sa...@xs4all.nl>.
Ming Tang wrote:
> Hi there,
>
> I intalled Apache 2.1.4 recently using ports

2.1 is development, please change to 2.2 to see if this problem still occurs.

Joost


---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org